Espresso 0.0.0e
This commit is contained in:
7
gdt.asm
7
gdt.asm
@ -3,13 +3,12 @@ global gdt_flush
|
||||
gdt_flush:
|
||||
mov eax, [esp + 4]
|
||||
lgdt [eax]
|
||||
; Reload segment registers
|
||||
mov ax, 0x10 ; Kernel data segment
|
||||
jmp 0x08:.flush_label ; long jump to reload CS with new segment
|
||||
.flush_label:
|
||||
mov ax, 0x10
|
||||
mov ds, ax
|
||||
mov es, ax
|
||||
mov fs, ax
|
||||
mov gs, ax
|
||||
mov ss, ax
|
||||
jmp 0x08:.flush ; Kernel code segment
|
||||
.flush:
|
||||
ret
|
||||
|
Reference in New Issue
Block a user