diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-06-29 20:50:59 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2006-06-29 20:50:59 +0000 |
commit | abe5ec3ff088be7884a04a9e09098dcdc3f19bd6 (patch) | |
tree | 92af203e52dd734dd7a8547bf571e7e5ff25fbdf /sys/arch/sparc64 | |
parent | 88ac2a365721fed4b5c3942c62b48e78a3503b9b (diff) |
Fix PMAP_PREFER and make it use VA_ALIAS_MASK to prevent me from breaking
it again.
ok miod@, jason@
Diffstat (limited to 'sys/arch/sparc64')
-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 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 */ |