summaryrefslogtreecommitdiff
path: root/sys/arch/m68k/include
diff options
context:
space:
mode:
authorAriane van der Steldt <ariane@cvs.openbsd.org>2011-04-28 20:53:33 +0000
committerAriane van der Steldt <ariane@cvs.openbsd.org>2011-04-28 20:53:33 +0000
commit2766819605d499d1c960be9c856e6f4ad548747e (patch)
treee8fc46a9cc498051df3b70700427bde56bc3e59b /sys/arch/m68k/include
parent3c71e88a4f2b743eb467e5be200d73f96050c6ee (diff)
Expose pmap_prefer parameters.
This will enable uvm_map to behave intelligently when allocating. Prodded by deraadt to commit this.
Diffstat (limited to 'sys/arch/m68k/include')
-rw-r--r--sys/arch/m68k/include/pmap_motorola.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/m68k/include/pmap_motorola.h b/sys/arch/m68k/include/pmap_motorola.h
index 02c819d6710..f4f2e5c1a13 100644
--- a/sys/arch/m68k/include/pmap_motorola.h
+++ b/sys/arch/m68k/include/pmap_motorola.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap_motorola.h,v 1.22 2011/03/23 16:54:35 pirofti Exp $ */
+/* $OpenBSD: pmap_motorola.h,v 1.23 2011/04/28 20:53:32 ariane Exp $ */
/*
* Copyright (c) 1987 Carnegie-Mellon University
@@ -139,6 +139,12 @@ void pmap_kenter_cache(vaddr_t, paddr_t, pt_entry_t);
#ifdef M68K_MMU_HP
vaddr_t pmap_prefer(vaddr_t, vaddr_t);
#define PMAP_PREFER(foff, va) pmap_prefer((foff), (va))
+
+extern int pmap_aliasmask; /* separation at which VA aliasing is ok */
+/* pmap prefer alignment */
+#define PMAP_PREFER_ALIGN() (pmap_aliasmask ? pmap_aliasmask + 1 : 0)
+/* pmap prefer offset */
+#define PMAP_PREFER_OFFSET(of) ((of) & pmap_aliasmask)
#endif
#endif /* _KERNEL */