summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64
diff options
context:
space:
mode:
authorAriane van der Steldt <ariane@cvs.openbsd.org>2011-04-28 20:38:05 +0000
committerAriane van der Steldt <ariane@cvs.openbsd.org>2011-04-28 20:38:05 +0000
commit9bbf050faaad2719d212a42aa68893e6ab1adddb (patch)
tree2ae1ea6e2f9e4b20d558d306fe84c5b737b94b31 /sys/arch/sparc64
parent8e1d2f21554dcdb8862d14b40f08a1bee3e5596f (diff)
Expose pmap_prefer parameters.
Enables future uvm_map code to make intelligent decisions during allocation. No functional change.
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r--sys/arch/sparc64/include/pmap.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/arch/sparc64/include/pmap.h b/sys/arch/sparc64/include/pmap.h
index 5be76a4ba47..231792771b3 100644
--- a/sys/arch/sparc64/include/pmap.h
+++ b/sys/arch/sparc64/include/pmap.h
@@ -169,6 +169,11 @@ void pmap_bootstrap(u_long, u_long, u_int, u_int);
/* make sure all page mappings are modulo 16K to prevent d$ aliasing */
#define PMAP_PREFER(pa, va) ((va) + (((va) ^ (pa)) & VA_ALIAS_MASK))
+/* pmap prefer alignment */
+#define PMAP_PREFER_ALIGN() (VA_ALIAS_MASK + 1)
+/* pmap prefer offset in alignment */
+#define PMAP_PREFER_OFFSET(of) ((of) & VA_ALIAS_MASK)
+
#define PMAP_GROWKERNEL /* turn on pmap_growkernel interface */
/* SPARC specific? */