Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 pmap_kenter_pa(): Obey the "prot" argumen...
details: https://anonhg.NetBSD.org/src/rev/ebcdc4416eda
branches: trunk
changeset: 525338:ebcdc4416eda
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed Apr 10 04:40:58 2002 +0000
description:
pmap_kenter_pa(): Obey the "prot" argument, rather than simply making
all mappings r/w (!!).
diffstat:
sys/arch/arm/arm32/pmap.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r 121b7ffab857 -r ebcdc4416eda sys/arch/arm/arm32/pmap.c
--- a/sys/arch/arm/arm32/pmap.c Wed Apr 10 04:38:48 2002 +0000
+++ b/sys/arch/arm/arm32/pmap.c Wed Apr 10 04:40:58 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.89 2002/04/10 01:30:42 thorpej Exp $ */
+/* $NetBSD: pmap.c,v 1.90 2002/04/10 04:40:58 thorpej Exp $ */
/*
* Copyright (c) 2002 Wasabi Systems, Inc.
@@ -143,7 +143,7 @@
#include <machine/param.h>
#include <arm/arm32/katelib.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.89 2002/04/10 01:30:42 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.90 2002/04/10 04:40:58 thorpej Exp $");
#ifdef PMAP_DEBUG
#define PDEBUG(_lev_,_stat_) \
if (pmap_debug_level >= (_lev_)) \
@@ -2775,10 +2775,8 @@
pte = vtopte(va);
KASSERT(!pmap_pte_v(pte));
- /* XXX r/w! */
*pte = L2_S_PROTO | pa |
- L2_S_PROT(PTE_KERNEL, VM_PROT_READ|VM_PROT_WRITE) |
- pte_l2_s_cache_mode;
+ L2_S_PROT(PTE_KERNEL, prot) | pte_l2_s_cache_mode;
}
void
Home |
Main Index |
Thread Index |
Old Index