summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
authorAriane van der Steldt <ariane@cvs.openbsd.org>2011-04-28 20:42:29 +0000
committerAriane van der Steldt <ariane@cvs.openbsd.org>2011-04-28 20:42:29 +0000
commitc8fc538151be9faa7d04505ce0656d4bae3fe259 (patch)
tree7632ec62df4a4ce826e4044d72f1ef1f944934ee /sys/arch/hppa
parentb9de760d35e2367700baf78e281ae66815be1fbb (diff)
Expose pmap_prefer parameters.
This will enable intelligent decisions with future uvm_map.
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r--sys/arch/hppa/include/pmap.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/arch/hppa/include/pmap.h b/sys/arch/hppa/include/pmap.h
index a9fc7a08adb..0a0aad3bbbc 100644
--- a/sys/arch/hppa/include/pmap.h
+++ b/sys/arch/hppa/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.40 2010/12/26 15:40:59 miod Exp $ */
+/* $OpenBSD: pmap.h,v 1.41 2011/04/28 20:42:28 ariane Exp $ */
/*
* Copyright (c) 2002-2004 Michael Shalayeff
@@ -101,6 +101,11 @@ pmap_prefer(vaddr_t offs, vaddr_t hint)
return pmap_prefer_hint;
}
+/* pmap prefer alignment */
+#define PMAP_PREFER_ALIGN() (HPPA_PGALIAS)
+/* pmap prefer offset within alignment */
+#define PMAP_PREFER_OFFSET(of) ((of) & HPPA_PGAOFF)
+
#define pmap_sid2pid(s) (((s) + 1) << 1)
#define pmap_kernel() (&kernel_pmap_store)
#define pmap_resident_count(pmap) ((pmap)->pm_stats.resident_count)