hw_x86_64: Perform indirect long jump to 64-bit code

This commit is contained in:
Reto Buerki 2015-02-11 16:38:51 +01:00 committed by Christian Helmuth
parent 15d0e86592
commit 0f624cdde7
1 changed files with 6 additions and 0 deletions

View File

@ -57,6 +57,12 @@
/* Set up GDT */
lgdt _gdt_ptr
/* Indirect long jump to 64-bit code */
ljmp $8, $_start64
.code64
_start64: .p2align MIN_PAGE_SIZE_LOG2
/*
* Install initial temporary environment that is replaced later by the
* environment that init_main_thread creates.