hw_x86_64: Enable Physical Address Extension (PAE)

This is a prerequisite for IA-32e mode.
This commit is contained in:
Reto Buerki 2015-02-11 15:40:51 +01:00 committed by Christian Helmuth
parent 8c9b79fab0
commit be430b9648
1 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,11 @@
.global _start
_start:
/* Enable PAE (prerequisite for IA-32e mode) */
movl %cr4, %eax
btsl $5, %eax
movl %eax, %cr4
/*
* Install initial temporary environment that is replaced later by the
* environment that init_main_thread creates.