hw_x86_64: Set segment registers prior to mode transition
The registers for the ds, es, fs and gs segments are hardcoded to GDT index 4 with requested privilege level set to 3.
This commit is contained in:
parent
fe22858550
commit
60e799f7b4
|
@ -90,6 +90,13 @@
|
|||
pushq $0x1b
|
||||
pushq (%rax)
|
||||
|
||||
/* Restore segment registers */
|
||||
mov $0x23, %rbx
|
||||
mov %rbx, %ds
|
||||
mov %rbx, %es
|
||||
mov %rbx, %fs
|
||||
mov %rbx, %gs
|
||||
|
||||
1: jmp 1b
|
||||
|
||||
/* end of the mode transition code */
|
||||
|
|
Loading…
Reference in New Issue