From b91bc3640360aac612643c0a8bd7dd661b73ce5e Mon Sep 17 00:00:00 2001 From: Gordon Willem Klok Date: Tue, 5 Dec 2006 20:48:24 +0000 Subject: 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@ --- sys/arch/macppc/pci/mpcpcibus.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys') 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; -- cgit v1.2.3