diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2003-02-24 01:00:53 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2003-02-24 01:00:53 +0000 |
commit | 4fd408f05cf552ccbf198e1feca67d2e7ee714e9 (patch) | |
tree | 2b0d0856dc08e8ffe7f08893f942f2e9071fe4e9 | |
parent | 499e96a7d88d0cc29bfad0bf2db238da3fa89a03 (diff) |
Prefer pmap_kenter_pa() rather than pmap_enter() for the buffers.
-rw-r--r-- | sys/arch/sparc64/sparc64/machdep.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c index 346a2b151b7..f9b7f6fb116 100644 --- a/sys/arch/sparc64/sparc64/machdep.c +++ b/sys/arch/sparc64/sparc64/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.56 2003/02/22 22:50:34 jason Exp $ */ +/* $OpenBSD: machdep.c,v 1.57 2003/02/24 01:00:52 miod Exp $ */ /* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */ /*- @@ -286,9 +286,8 @@ cpu_startup() if (pg == NULL) panic("cpu_startup: " "not enough RAM for buffer cache"); - pmap_enter(kernel_map->pmap, curbuf, - VM_PAGE_TO_PHYS(pg), VM_PROT_READ|VM_PROT_WRITE, - VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED); + pmap_kenter_pa(curbuf, + VM_PAGE_TO_PHYS(pg), VM_PROT_READ|VM_PROT_WRITE); curbuf += PAGE_SIZE; curbufsize -= PAGE_SIZE; } |