diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2011-05-18 20:41:25 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2011-05-18 20:41:25 +0000 |
commit | cd7e4040f45de161765614d55ee3a44509fd66b1 (patch) | |
tree | 8d41a0e77ed048546c3ec18fab9d2dc1770934ed /sys/arch/sparc64/include/pmap.h | |
parent | 65755dfdf50fb4fa4e6f2d3266e6b50684b61cb8 (diff) |
Off-by-two in PMAP_PREFER_ALIGN definition; found the hard way by matthieu@
Diffstat (limited to 'sys/arch/sparc64/include/pmap.h')
-rw-r--r-- | sys/arch/sparc64/include/pmap.h | 2 |
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) |