1
0
Fork 0
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:
Stefan Lankes 2017-08-20 10:19:25 +02:00 committed by GitHub
parent dfa27cb3c1
commit b163fa4521

View file

@ -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.