hw_x86_64: Explicitly set up segment selectors during boot
This commit is contained in:
parent
65de09c7a6
commit
51d515c77f
|
@ -63,6 +63,16 @@
|
||||||
.code64
|
.code64
|
||||||
_start64: .p2align MIN_PAGE_SIZE_LOG2
|
_start64: .p2align MIN_PAGE_SIZE_LOG2
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Set up kernel segment selectors
|
||||||
|
*/
|
||||||
|
mov $0x10, %eax
|
||||||
|
mov %eax, %ss
|
||||||
|
mov %eax, %ds
|
||||||
|
mov %eax, %es
|
||||||
|
mov %eax, %fs
|
||||||
|
mov %eax, %gs
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Install initial temporary environment that is replaced later by the
|
* Install initial temporary environment that is replaced later by the
|
||||||
* environment that init_main_thread creates.
|
* environment that init_main_thread creates.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user