summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2011-05-18 20:41:24 +0000
committermiod <miod@openbsd.org>2011-05-18 20:41:24 +0000
commit9207a041eb0791b0f67bfa06e46b496166cec0b4 (patch)
treec7e19915f84b11a709415c7dc6d9b8685fbd220f
parentSupport setting the xterm clipboard when copying from copy mode using (diff)
downloadwireguard-openbsd-9207a041eb0791b0f67bfa06e46b496166cec0b4.tar.xz
wireguard-openbsd-9207a041eb0791b0f67bfa06e46b496166cec0b4.zip
Off-by-two in PMAP_PREFER_ALIGN definition; found the hard way by matthieu@
-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 231792771b3..7d2913a3fdb 100644
--- a/sys/arch/sparc64/include/pmap.h
+++ b/sys/arch/sparc64/include/pmap.h
@@ -170,7 +170,7 @@ void pmap_bootstrap(u_long, u_long, u_int, u_int);
#define PMAP_PREFER(pa, va) ((va) + (((va) ^ (pa)) & VA_ALIAS_MASK))
/* pmap prefer alignment */
-#define PMAP_PREFER_ALIGN() (VA_ALIAS_MASK + 1)
+#define PMAP_PREFER_ALIGN() (VA_ALIAS_MASK - 1)
/* pmap prefer offset in alignment */
#define PMAP_PREFER_OFFSET(of) ((of) & VA_ALIAS_MASK)