diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-03-19 21:22:14 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-03-19 21:22:14 +0000 |
commit | c8b290c9bd3c08670cc9745fb6fe5de5acd18336 (patch) | |
tree | 97fb25503d8e8a42f7c59b91a19da7f8e8394a79 /sys/arch/hppa | |
parent | fcdf66c2ee3f718523742e1f96d1ec1a22602720 (diff) |
empty is uncached by definition
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/hppa/pmap.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/hppa/hppa/pmap.c b/sys/arch/hppa/hppa/pmap.c index b70345a2187..ae594108125 100644 --- a/sys/arch/hppa/hppa/pmap.c +++ b/sys/arch/hppa/hppa/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.63 2002/03/19 00:33:18 mickey Exp $ */ +/* $OpenBSD: pmap.c,v 1.64 2002/03/19 21:22:13 mickey Exp $ */ /* * Copyright (c) 1998-2002 Michael Shalayeff @@ -267,9 +267,10 @@ pmap_pte_set(pt_entry_t *pde, vaddr_t va, pt_entry_t pte) if (pte && pte < virtual_steal && hppa_trunc_page(pte) != (paddr_t)&gateway_page) panic("pmap_pte_set: invalid pte"); -#endif - if (!(pte & PTE_PROT(TLB_UNCACHABLE))) + + if (pte && !(pte & PTE_PROT(TLB_UNCACHABLE))) Debugger(); +#endif asm("stwas %0, 0(%1)" :: "r" (pte), "r" ((paddr_t)pde + ((va >> 10) & 0xffc))); } |