summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1999-11-25 18:35:22 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1999-11-25 18:35:22 +0000
commit6b1969b6efead519554c1642a176590642add6af (patch)
tree5c8caecc3a8047fb6930d21b072cbf87677fb43b /sys
parent2be9960496d207b529d80240cebeabcc61937486 (diff)
clean some debug stuff
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/hppa/hppa/pmap.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/arch/hppa/hppa/pmap.c b/sys/arch/hppa/hppa/pmap.c
index b26777d60f8..0c124a1b117 100644
--- a/sys/arch/hppa/hppa/pmap.c
+++ b/sys/arch/hppa/hppa/pmap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.c,v 1.27 1999/11/25 17:39:46 mickey Exp $ */
+/* $OpenBSD: pmap.c,v 1.28 1999/11/25 18:35:21 mickey Exp $ */
/*
* Copyright (c) 1998,1999 Michael Shalayeff
@@ -596,7 +596,8 @@ pmap_clear_pv(paddr_t pa, struct pv_entry *cpv)
if (pv == cpv)
continue;
#ifdef PMAPDEBUG
- printf("pmap_clear_pv: %x:%x\n", pv->pv_space, pv->pv_va);
+ if (pmapdebug & PDB_PV)
+ printf("pmap_clear_pv: %x:%x\n", pv->pv_space, pv->pv_va);
#endif
/*
* have to clear the icache first since fic uses the dtlb.
@@ -1329,7 +1330,6 @@ pmap_zero_page(pa)
register paddr_t pa;
{
extern int dcache_line_mask;
- /* register int psw; */
register paddr_t pe = pa + PAGE_SIZE;
#ifdef PMAPDEBUG
@@ -1339,10 +1339,9 @@ pmap_zero_page(pa)
pmap_clear_pv(pa, NULL);
- /* rsm(PSW_I,psw); */
while (pa < pe) {
__asm volatile("stwas,ma %%r0,4(%0)\n\t"
- : "=r" (pa) : "0" (pa) : "memory");
+ : "+r" (pa) :: "memory");
if (!(pa & dcache_line_mask))
__asm volatile("rsm %1, %%r0\n\t"
@@ -1352,7 +1351,6 @@ pmap_zero_page(pa)
}
sync_caches();
- /* mtsm(psw); */
}
/*
@@ -1373,7 +1371,7 @@ pmap_copy_page(spa, dpa)
int s;
#ifdef PMAPDEBUG
- /*if (1 && pmapdebug & PDB_FOLLOW)*/
+ if (1 && pmapdebug & PDB_FOLLOW)
printf("pmap_copy_page(%x, %x)\n", spa, dpa);
#endif