diff options
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/gdt-as.S | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/gdt-as.S b/kernel/gdt-as.S index 10f051a..5a481e3 100644 --- a/kernel/gdt-as.S +++ b/kernel/gdt-as.S @@ -1,14 +1,14 @@ .global gdt_flush - .type gdt_flush, @function gdt_flush: # prototype: void gdt_flush(uint32) movl 4(%esp), %eax lgdt (%eax) - mov $0x10, %ax + # 0x8 is the code segment selector + jmp $0x8, $.flush +.flush: + mov $0x10, %ax # 0x10 is the data segment selector mov %ax, %ds mov %ax, %es mov %ax, %fs mov %ax, %gs mov %ax, %ss - jmp $0x8, $.flush -.flush: ret |