1
0
mirror of https://github.com/taigrr/gopher-os synced 2025-01-18 04:43:13 -08:00

Load SS register value to DS_SEG when setting up GDT

If not set then the CPU wil generate a GPF exception when returning from
an interrupt handler
This commit is contained in:
Achilleas Anagnostopoulos 2017-06-21 17:29:29 +01:00
parent cd3199199b
commit 827f1a171f

View File

@ -321,6 +321,7 @@ _rt0_enter_long_mode:
mov es, ax
mov fs, ax
mov gs, ax
mov ss, ax
jmp CS_SEG:.flush_gdt - PAGE_OFFSET
.flush_gdt: