From c8b290c9bd3c08670cc9745fb6fe5de5acd18336 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 19 Mar 2002 21:22:14 +0000 Subject: empty is uncached by definition --- sys/arch/hppa/hppa/pmap.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys/arch/hppa') 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))); } -- cgit v1.2.3