summaryrefslogtreecommitdiff
path: root/sys/arch/sh/include
diff options
context:
space:
mode:
authorAriane van der Steldt <ariane@cvs.openbsd.org>2011-04-28 20:40:37 +0000
committerAriane van der Steldt <ariane@cvs.openbsd.org>2011-04-28 20:40:37 +0000
commitb9de760d35e2367700baf78e281ae66815be1fbb (patch)
tree6933932c2d2fa9d1ad79bfc8e2fe501332983e0c /sys/arch/sh/include
parent9bbf050faaad2719d212a42aa68893e6ab1adddb (diff)
Expose pmap_prefer parameters.
This enables future uvm_map code to make intelligent decisions. Code is not called at the moment.
Diffstat (limited to 'sys/arch/sh/include')
-rw-r--r--sys/arch/sh/include/pmap.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/arch/sh/include/pmap.h b/sys/arch/sh/include/pmap.h
index 55f5b7ff697..954f9b607c8 100644
--- a/sys/arch/sh/include/pmap.h
+++ b/sys/arch/sh/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.9 2010/12/26 15:41:00 miod Exp $ */
+/* $OpenBSD: pmap.h,v 1.10 2011/04/28 20:40:36 ariane Exp $ */
/* $NetBSD: pmap.h,v 1.28 2006/04/10 23:12:11 uwe Exp $ */
/*-
@@ -81,6 +81,13 @@ pmap_remove_all(struct pmap *pmap)
#ifdef SH4
#define PMAP_PREFER(pa, va) pmap_prefer((pa), (va))
vaddr_t pmap_prefer(vaddr_t, vaddr_t);
+vaddr_t pmap_prefer_align(void);
+vaddr_t pmap_prefer_offset(vaddr_t);
+
+/* pmap prefer alignment */
+#define PMAP_PREFER_ALIGN() pmap_prefer_align()
+/* pmap prefer offset in alignment */
+#define PMAP_PREFER_OFFSET(of) pmap_prefer_offset(of)
#endif /* SH4 */
#define __HAVE_PMAP_DIRECT