GDT Rewritten to be slightly more stable
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
.global SEGMENTS_RELOAD
|
||||
|
||||
SEGMENTS_RELOAD:
|
||||
ljmp $0x08, $reloadCS
|
||||
|
||||
reloadCS:
|
||||
movw $0x10, %ax
|
||||
movw %ax, %es
|
||||
movw %ax, %ss
|
||||
movw %ax, %ds
|
||||
movw %ax, %es
|
||||
movw %ax, %fs
|
||||
movw %ax, %gs
|
||||
movw %ax, %ss
|
||||
ljmp $0x08, $flush2
|
||||
|
||||
flush2:
|
||||
ret
|
||||
|
||||
Reference in New Issue
Block a user