summaryrefslogtreecommitdiff
path: root/sys/arch/solbourne
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-12-26 15:41:01 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-12-26 15:41:01 +0000
commit55d0ea063b25d8b25fea5135f59de22437ecd4ea (patch)
tree42c739678ad68f903e06cc29eb0db1df3bf6298e /sys/arch/solbourne
parent47f20d782a94ebc11fb4c7b43294559377be4989 (diff)
Kill pmap_phys_address(), and force every driver's mmap() routine to return
a physical address [more precisely, something suitable to pass to pmap_enter()'sphysical address argument]. This allows MI drivers to implement mmap() routines without having to know about the pmap_phys_address() implementation and #ifdef obfuscation.
Diffstat (limited to 'sys/arch/solbourne')
-rw-r--r--sys/arch/solbourne/include/pmap.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/arch/solbourne/include/pmap.h b/sys/arch/solbourne/include/pmap.h
index 8d00def393d..0e20888aba9 100644
--- a/sys/arch/solbourne/include/pmap.h
+++ b/sys/arch/solbourne/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.4 2010/12/06 20:57:18 miod Exp $ */
+/* $OpenBSD: pmap.h,v 1.5 2010/12/26 15:41:00 miod Exp $ */
/*
* Copyright (c) 2005, Miodrag Vallat
*
@@ -68,7 +68,6 @@ extern struct pmap kernel_pmap_store;
#define pmap_copy(a,b,c,d,e) do { /* nothing */ } while (0)
#define pmap_deactivate(p) do { /* nothing */ } while (0)
#define pmap_kernel() (&kernel_pmap_store)
-#define pmap_phys_address(frame) ptoa(frame)
#define pmap_resident_count(p) ((p)->pm_stats.resident_count)
#define pmap_update(p) do { /* nothing */ } while (0)
#define pmap_wired_count(p) ((p)->pm_stats.wired_count)