summaryrefslogtreecommitdiffstats
path: root/sys/alpha/pci/cia.c
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>1998-08-13 08:11:27 +0000
committerdfr <dfr@FreeBSD.org>1998-08-13 08:11:27 +0000
commit80d9c672e17b3ecef429af2afc1f1d5952a5be6d (patch)
treee6f32abf2a52d58090a40ce5822b7329aa870780 /sys/alpha/pci/cia.c
parentcb85cf3e66942eabeff656173ac75b9275fa61fe (diff)
downloadFreeBSD-src-80d9c672e17b3ecef429af2afc1f1d5952a5be6d.zip
FreeBSD-src-80d9c672e17b3ecef429af2afc1f1d5952a5be6d.tar.gz
I managed to break sparse configuration accesses with my last commit.
Pointed out by: Andrew Gallatin <gallatin@cs.duke.edu>
Diffstat (limited to 'sys/alpha/pci/cia.c')
-rw-r--r--sys/alpha/pci/cia.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/alpha/pci/cia.c b/sys/alpha/pci/cia.c
index 5b29493..c245358 100644
--- a/sys/alpha/pci/cia.c
+++ b/sys/alpha/pci/cia.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: cia.c,v 1.6 1998/08/10 07:53:59 dfr Exp $
+ * $Id: cia.c,v 1.7 1998/08/11 08:51:09 dfr Exp $
*/
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -475,7 +475,7 @@ cia_swiz_maxdevs(u_int b)
int ipl = 0; \
u_int32_t old_cfg = 0; \
vm_offset_t off = CIA_SWIZ_CFGOFF(b, s, f, r); \
- vm_offset_t kv = SPARSE_##width##_ADDRESS(CIA_PCI_CONF, off); \
+ vm_offset_t kv = SPARSE_##width##_ADDRESS(KV(CIA_PCI_CONF), off); \
alpha_mb(); \
CIA_TYPE1_SETUP(b,ipl,old_cfg); \
if (!badaddr((caddr_t)kv, sizeof(type))) { \
@@ -488,7 +488,7 @@ cia_swiz_maxdevs(u_int b)
int ipl = 0; \
u_int32_t old_cfg = 0; \
vm_offset_t off = CIA_SWIZ_CFGOFF(b, s, f, r); \
- vm_offset_t kv = SPARSE_##width##_ADDRESS(CIA_PCI_CONF, off); \
+ vm_offset_t kv = SPARSE_##width##_ADDRESS(KV(CIA_PCI_CONF), off); \
alpha_mb(); \
CIA_TYPE1_SETUP(b,ipl,old_cfg); \
if (!badaddr((caddr_t)kv, sizeof(type))) { \
OpenPOWER on IntegriCloud