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:
parent
cd3199199b
commit
827f1a171f
@ -321,6 +321,7 @@ _rt0_enter_long_mode:
|
|||||||
mov es, ax
|
mov es, ax
|
||||||
mov fs, ax
|
mov fs, ax
|
||||||
mov gs, ax
|
mov gs, ax
|
||||||
|
mov ss, ax
|
||||||
|
|
||||||
jmp CS_SEG:.flush_gdt - PAGE_OFFSET
|
jmp CS_SEG:.flush_gdt - PAGE_OFFSET
|
||||||
.flush_gdt:
|
.flush_gdt:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user