summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAriane van der Steldt <ariane@cvs.openbsd.org>2011-04-28 20:36:30 +0000
committerAriane van der Steldt <ariane@cvs.openbsd.org>2011-04-28 20:36:30 +0000
commit8e1d2f21554dcdb8862d14b40f08a1bee3e5596f (patch)
tree9840571596dcef336f4d237774037a54b8efced9
parent8e187dc4ba1942a5878bf2103118fd6bababb609 (diff)
Expose pmap prefer parameters.
Enables future uvm_map code to make intelligent decisions. No functional change.
-rw-r--r--sys/arch/sparc/include/pmap.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/arch/sparc/include/pmap.h b/sys/arch/sparc/include/pmap.h
index 1441f9e8296..91460d91a73 100644
--- a/sys/arch/sparc/include/pmap.h
+++ b/sys/arch/sparc/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.51 2011/03/23 16:54:37 pirofti Exp $ */
+/* $OpenBSD: pmap.h,v 1.52 2011/04/28 20:36:29 ariane Exp $ */
/* $NetBSD: pmap.h,v 1.30 1997/08/04 20:00:47 pk Exp $ */
/*
@@ -263,6 +263,13 @@ int pmap_dumpmmu(int (*)(dev_t, daddr64_t, caddr_t, size_t), daddr64
#define PMAP_PREFER(fo, ap) pmap_prefer((fo), (ap))
+extern int cache_alias_dist;
+/* pmap prefer alignment */
+#define PMAP_PREFER_ALIGN() cache_alias_dist
+/* pmap prefer offset in alignment */
+#define PMAP_PREFER_OFFSET(of) \
+ ((of) & (cache_alias_dist ? cache_alias_dist - 1 : 0))
+
#define PMAP_EXCLUDE_DECLS /* tells MI pmap.h *not* to include decls */
/* FUNCTION DECLARATIONS FOR COMMON PMAP MODULE */