Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc fix breakage from PMAP_NEW cleanup.
details: https://anonhg.NetBSD.org/src/rev/e7e934bb1736
branches: trunk
changeset: 476356:e7e934bb1736
user: chs <chs%NetBSD.org@localhost>
date: Tue Sep 14 17:11:45 1999 +0000
description:
fix breakage from PMAP_NEW cleanup.
diffstat:
sys/arch/powerpc/powerpc/pmap.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r a5ec7420633a -r e7e934bb1736 sys/arch/powerpc/powerpc/pmap.c
--- a/sys/arch/powerpc/powerpc/pmap.c Tue Sep 14 11:21:26 1999 +0000
+++ b/sys/arch/powerpc/powerpc/pmap.c Tue Sep 14 17:11:45 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.25 1999/09/12 01:17:18 chs Exp $ */
+/* $NetBSD: pmap.c,v 1.26 1999/09/14 17:11:45 chs Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -1264,8 +1264,8 @@
}
int
-ptebits(pa, bit)
- paddr_t pa;
+ptebits(pg, bit)
+ struct vm_page *pg;
int bit;
{
struct pv_entry *pv;
@@ -1273,6 +1273,7 @@
struct pte_ovfl *po;
int i, s, bits = 0;
char *attr;
+ paddr_t pa = VM_PAGE_TO_PHYS(pg);
/*
* First try the cache.
@@ -1341,7 +1342,7 @@
pa &= ~ADDR_POFF;
if (prot & VM_PROT_READ) {
- ptemodify(pa, PTE_PP, PTE_RO);
+ ptemodify(pg, PTE_PP, PTE_RO);
return;
}
Home |
Main Index |
Thread Index |
Old Index