Espresso 0.0.1e
This commit is contained in:
14
arch/x86/gdt.asm
Normal file
14
arch/x86/gdt.asm
Normal file
@ -0,0 +1,14 @@
|
||||
global gdt_flush
|
||||
|
||||
gdt_flush:
|
||||
mov eax, [esp + 4]
|
||||
lgdt [eax]
|
||||
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
|
||||
ret
|
Reference in New Issue
Block a user