mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
set selectors to kernel data segment
This commit is contained in:
parent
07eafc9a08
commit
dfa27cb3c1
1 changed files with 2 additions and 1 deletions
|
@ -121,10 +121,11 @@ SECTION .ktext
|
|||
align 4
|
||||
start64:
|
||||
; reset registers to kill any stale realmode selectors
|
||||
xor eax, eax
|
||||
mov eax, 0x10
|
||||
mov ds, eax
|
||||
mov ss, eax
|
||||
mov es, eax
|
||||
xor eax, eax
|
||||
mov fs, eax
|
||||
mov gs, eax
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue