Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/luna68k/luna68k Use pmap_kenter_pa(9) to map msgbuf...
details: https://anonhg.NetBSD.org/src/rev/f72682a66ba1
branches: trunk
changeset: 771605:f72682a66ba1
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Sat Nov 26 04:32:46 2011 +0000
description:
Use pmap_kenter_pa(9) to map msgbuf memory which is not managed by VM.
diffstat:
sys/arch/luna68k/luna68k/machdep.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r 15bfd57c9929 -r f72682a66ba1 sys/arch/luna68k/luna68k/machdep.c
--- a/sys/arch/luna68k/luna68k/machdep.c Sat Nov 26 04:31:19 2011 +0000
+++ b/sys/arch/luna68k/luna68k/machdep.c Sat Nov 26 04:32:46 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.87 2011/11/26 04:31:19 tsutsui Exp $ */
+/* $NetBSD: machdep.c,v 1.88 2011/11/26 04:32:46 tsutsui Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.87 2011/11/26 04:31:19 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.88 2011/11/26 04:32:46 tsutsui Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -172,9 +172,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