hw_x86_64: Load initial pagetable address into cr3

This commit is contained in:
Reto Buerki 2015-02-11 15:45:11 +01:00 committed by Christian Helmuth
parent bafb893a70
commit d23cd7e5ff
1 changed files with 4 additions and 0 deletions

View File

@ -34,6 +34,10 @@
btsl $5, %eax
movl %eax, %cr4
/* Load initial pagetables */
leal _kernel_pml4, %eax
mov %eax, %cr3
/*
* Install initial temporary environment that is replaced later by the
* environment that init_main_thread creates.