summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2006-06-29 20:50:58 +0000
committerkettenis <kettenis@openbsd.org>2006-06-29 20:50:58 +0000
commit04d580911c65c4984442c1381b5e22c4b50f100f (patch)
treef1502dae6cb251a39554fce7480944d069a2f854 /sys
parentFinally fix the EEPROM reading code so that we can access the EEPROMs on all (diff)
downloadwireguard-openbsd-04d580911c65c4984442c1381b5e22c4b50f100f.tar.xz
wireguard-openbsd-04d580911c65c4984442c1381b5e22c4b50f100f.zip
Fix PMAP_PREFER and make it use VA_ALIAS_MASK to prevent me from breaking
it again. ok miod@, jason@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc64/include/pmap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arch/sparc64/include/pmap.h b/sys/arch/sparc64/include/pmap.h
index aa5ae03cb34..95a39e51792 100644
--- a/sys/arch/sparc64/include/pmap.h
+++ b/sys/arch/sparc64/include/pmap.h
@@ -166,7 +166,7 @@ int pmap_count_res(pmap_t pmap);
void pmap_bootstrap(u_long kernelstart, u_long kernelend, u_int numctx);
/* make sure all page mappings are modulo 16K to prevent d$ aliasing */
-#define PMAP_PREFER(pa, va) (*(va)+=(((*(va))^(pa))&(1<<(PGSHIFT+1))))
+#define PMAP_PREFER(pa, va) (*(va) += (((*(va)) ^ (pa)) & VA_ALIAS_MASK))
#define PMAP_GROWKERNEL /* turn on pmap_growkernel interface */