summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/include
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>1998-07-24 20:32:07 +0000
committerthorpej <thorpej@NetBSD.org>1998-07-24 20:32:07 +0000
commit2385ee5eca150520f6b62ce303a95814ff3c19e8 (patch)
tree7ede5def632b81c81b86bcd213e24b657f55d4ad /sys/arch/alpha/include
parent8325d058bf6177344c78e91be1a1b520a85df1c3 (diff)
Provide PMAP_{,UN}MAP_POOLPAGE().
Diffstat (limited to 'sys/arch/alpha/include')
-rw-r--r--sys/arch/alpha/include/pmap.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/arch/alpha/include/pmap.h b/sys/arch/alpha/include/pmap.h
index 01593211ea7..6198174f589 100644
--- a/sys/arch/alpha/include/pmap.h
+++ b/sys/arch/alpha/include/pmap.h
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.h,v 1.21 1998/06/11 05:10:41 thorpej Exp $ */
+/* $NetBSD: pmap.h,v 1.22 1998/07/24 20:32:07 thorpej Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -190,6 +190,12 @@ extern pt_entry_t *VPT; /* Virtual Page Table */
#define PMAP_STEAL_MEMORY /* enable pmap_steal_memory() */
+/*
+ * Alternate mapping hooks for pool pages. Avoids thrashing the TLB.
+ */
+#define PMAP_MAP_POOLPAGE(pa) ALPHA_PHYS_TO_K0SEG((pa))
+#define PMAP_UNMAP_POOLPAGE(va) ALPHA_K0SEG_TO_PHYS((va))
+
vm_offset_t vtophys __P((vm_offset_t));
/* Machine-specific functions. */