Fix the "va" argument to pmap_map_entry() when mapping kernel_ptpt.
This commit is contained in:
parent
3ca01a7f77
commit
9d157337f4
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: rpc_machdep.c,v 1.23 2002/02/22 04:49:19 thorpej Exp $ */
|
||||
/* $NetBSD: rpc_machdep.c,v 1.24 2002/02/22 18:25:08 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000-2001 Reinoud Zandijk.
|
||||
@ -57,7 +57,7 @@
|
||||
|
||||
#include <sys/param.h>
|
||||
|
||||
__RCSID("$NetBSD: rpc_machdep.c,v 1.23 2002/02/22 04:49:19 thorpej Exp $");
|
||||
__RCSID("$NetBSD: rpc_machdep.c,v 1.24 2002/02/22 18:25:08 thorpej Exp $");
|
||||
|
||||
#include <sys/systm.h>
|
||||
#include <sys/kernel.h>
|
||||
@ -751,8 +751,8 @@ initarm(void *cookie)
|
||||
PD_SIZE, VM_PROT_READ|VM_PROT_WRITE, PTE_NOCACHE);
|
||||
|
||||
/* Map the page table that maps the kernel pages */
|
||||
pmap_map_entry(l1pagetable, kernel_ptpt.pv_pa - physical_start,
|
||||
kernel_ptpt.pv_pa, VM_PROT_READ|VM_PROT_WRITE, PTE_NOCACHE);
|
||||
pmap_map_entry(l1pagetable, kernel_ptpt.pv_va, kernel_ptpt.pv_pa,
|
||||
VM_PROT_READ|VM_PROT_WRITE, PTE_NOCACHE);
|
||||
|
||||
|
||||
/* Now we fill in the L2 pagetable for the VRAM */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: hpc_machdep.c,v 1.34 2002/02/22 04:49:21 thorpej Exp $ */
|
||||
/* $NetBSD: hpc_machdep.c,v 1.35 2002/02/22 18:25:08 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994-1998 Mark Brinicombe.
|
||||
@ -553,7 +553,7 @@ initarm(argc, argv, bi)
|
||||
PD_SIZE, VM_PROT_READ|VM_PROT_WRITE, PTE_NOCACHE);
|
||||
|
||||
/* Map the page table that maps the kernel pages */
|
||||
pmap_map_entry(l1pagetable, kernel_ptpt.pv_pa, kernel_ptpt.pv_pa,
|
||||
pmap_map_entry(l1pagetable, kernel_ptpt.pv_va, kernel_ptpt.pv_pa,
|
||||
VM_PROT_READ|VM_PROT_WRITE, PTE_NOCACHE);
|
||||
|
||||
/* Map a page for entering idle mode */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: netwinder_machdep.c,v 1.22 2002/02/22 04:49:21 thorpej Exp $ */
|
||||
/* $NetBSD: netwinder_machdep.c,v 1.23 2002/02/22 18:25:09 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997,1998 Mark Brinicombe.
|
||||
@ -661,7 +661,7 @@ initarm(bootinfo)
|
||||
PD_SIZE, VM_PROT_READ|VM_PROT_WRITE, PTE_NOCACHE);
|
||||
|
||||
/* Map the page table that maps the kernel pages */
|
||||
pmap_map_entry(l1pagetable, kernel_ptpt.pv_pa, kernel_ptpt.pv_pa,
|
||||
pmap_map_entry(l1pagetable, kernel_ptpt.pv_va, kernel_ptpt.pv_pa,
|
||||
VM_PROT_READ|VM_PROT_WRITE, PTE_NOCACHE);
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user