hw_x86_64: Explicitly set up segment selectors during boot

This commit is contained in:
Adrian-Ken Rueegsegger 2015-02-17 11:01:47 +01:00 committed by Christian Helmuth
parent 65de09c7a6
commit 51d515c77f
1 changed files with 10 additions and 0 deletions

View File

@ -63,6 +63,16 @@
.code64
_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
* environment that init_main_thread creates.