GDT Rewritten to be slightly more stable

This commit is contained in:
Benjamin Kyd
2019-04-28 00:10:47 +01:00
parent 6be1414484
commit fe0a4a6d3b
7 changed files with 44 additions and 34 deletions

View File

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