summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorGordon Willem Klok <gwk@cvs.openbsd.org>2006-12-05 20:48:24 +0000
committerGordon Willem Klok <gwk@cvs.openbsd.org>2006-12-05 20:48:24 +0000
commitb91bc3640360aac612643c0a8bd7dd661b73ce5e (patch)
treef68c3d544837c10912f498f06b7bbda32836c7ed /sys
parent79624c95c7f8da5e6aef440409664fe894b5ddd5 (diff)
Implement an alternative workaround for the extent lies out of region panic
on old world macppc machines, if the compat property of the device is bandit skip the pci_addr_fixup() call. This acomplishes what the changes in rev 1.33 that were reverted attempted to do without breaking currently supported machines. A positive side effect to this change is also working PCI cards as well as onboard devices. ok drahn@
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/macppc/pci/mpcpcibus.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/macppc/pci/mpcpcibus.c b/sys/arch/macppc/pci/mpcpcibus.c
index fbb64566608..5408692ecb4 100644
--- a/sys/arch/macppc/pci/mpcpcibus.c
+++ b/sys/arch/macppc/pci/mpcpcibus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpcpcibus.c,v 1.34 2006/10/27 10:42:39 gwk Exp $ */
+/* $OpenBSD: mpcpcibus.c,v 1.35 2006/12/05 20:48:23 gwk Exp $ */
/*
* Copyright (c) 1997 Per Fogelstrom
@@ -435,7 +435,8 @@ mpcpcibrattach(struct device *parent, struct device *self, void *aux)
printf(": %s, Revision 0x%x\n", compat,
mpc_cfg_read_1(lcp, MPC106_PCI_REVID));
- pci_addr_fixup(sc, &lcp->lc_pc, 32);
+ if ((strcmp(compat, "bandit")) != 0)
+ pci_addr_fixup(sc, &lcp->lc_pc, 32);
pba.pba_dmat = &pci_bus_dma_tag;