Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/x68k Use pmap_kenter_pa(9) for msgbuf memory w...
details: https://anonhg.NetBSD.org/src/rev/56507a73d9ba
branches: trunk
changeset: 764958:56507a73d9ba
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat May 14 10:57:50 2011 +0000
description:
Use pmap_kenter_pa(9) for msgbuf memory which is not managed by VM.
diffstat:
sys/arch/x68k/x68k/machdep.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r 09e8c0629972 -r 56507a73d9ba sys/arch/x68k/x68k/machdep.c
--- a/sys/arch/x68k/x68k/machdep.c Sat May 14 10:49:06 2011 +0000
+++ b/sys/arch/x68k/x68k/machdep.c Sat May 14 10:57:50 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.174 2011/05/14 10:49:06 tsutsui Exp $ */
+/* $NetBSD: machdep.c,v 1.175 2011/05/14 10:57:50 tsutsui Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.174 2011/05/14 10:49:06 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.175 2011/05/14 10:57:50 tsutsui Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -188,9 +188,8 @@
* avail_end was pre-decremented in pmap_bootstrap to compensate.
*/
for (i = 0; i < btoc(MSGBUFSIZE); i++)
- pmap_enter(pmap_kernel(), (vaddr_t)msgbufaddr + i * PAGE_SIZE,
- avail_end + i * PAGE_SIZE, VM_PROT_READ|VM_PROT_WRITE,
- VM_PROT_READ|VM_PROT_WRITE|PMAP_WIRED);
+ pmap_kenter_pa((vaddr_t)msgbufaddr + i * PAGE_SIZE,
+ avail_end + i * PAGE_SIZE, VM_PROT_READ|VM_PROT_WRITE, 0);
pmap_update(pmap_kernel());
initmsgbuf(msgbufaddr, m68k_round_page(MSGBUFSIZE));
}
Home |
Main Index |
Thread Index |
Old Index