hw_x86_64: Perform indirect long jump to 64-bit code
This commit is contained in:
parent
15d0e86592
commit
0f624cdde7
|
@ -57,6 +57,12 @@
|
||||||
/* Set up GDT */
|
/* Set up GDT */
|
||||||
lgdt _gdt_ptr
|
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
|
* 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