* ARM: Map full page directory, instead of just the first page

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39092 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ithamar R. Adema 2010-10-23 20:28:49 +00:00
parent 560626ba87
commit 3164579353

View File

@ -614,9 +614,8 @@ mmu_init(void)
sPageDirectory[1023] = (uint32)sPageDirectory | kDefaultPageFlags;
*/
// also map it on the next vpage
gKernelArgs.arch_args.vir_pgdir = get_next_virtual_page(B_PAGE_SIZE);
map_page(gKernelArgs.arch_args.vir_pgdir, (uint32)sPageDirectory,
kDefaultPageFlags);
gKernelArgs.arch_args.vir_pgdir = mmu_map_physical_memory(
(addr_t)sPageDirectory, MMU_L1_TABLE_SIZE, kDefaultPageFlags);
// map in a kernel stack
gKernelArgs.cpu_kstack[0].start = (addr_t)mmu_allocate(NULL,