mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
reload the segment descriptors after loading GDT
This commit is contained in:
parent
dfa27cb3c1
commit
b163fa4521
1 changed files with 10 additions and 0 deletions
|
@ -264,6 +264,16 @@ extern gp
|
|||
; C as 'extern void gdt_flush();'
|
||||
gdt_flush:
|
||||
lgdt [gp]
|
||||
; reload the segment descriptors
|
||||
mov eax, 0x10
|
||||
mov ds, eax
|
||||
mov es, eax
|
||||
mov ss, eax
|
||||
xor eax, eax
|
||||
mov fs, eax
|
||||
mov gs, eax
|
||||
jmp 0x08:flush2
|
||||
flush2:
|
||||
ret
|
||||
|
||||
; The first 32 interrupt service routines (ISR) entries correspond to exceptions.
|
||||
|
|
Loading…
Add table
Reference in a new issue