Ops, use the proper setup_channel() function for promise adapters.
Using pdc202xx_setup_channel() for PDC20268 and newer is wrong, and will cause trap trying to read from a non-existent register on some arches (e.g. macppc). pointed out by Makoto Fujiwara on port-macppc.
This commit is contained in:
parent
8bbbfff0a1
commit
8305da0e8f
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pciide.c,v 1.155 2002/06/04 08:58:20 fvdl Exp $ */
|
||||
/* $NetBSD: pciide.c,v 1.156 2002/06/08 17:54:59 bouyer Exp $ */
|
||||
|
||||
|
||||
/*
|
||||
@ -76,7 +76,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: pciide.c,v 1.155 2002/06/04 08:58:20 fvdl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pciide.c,v 1.156 2002/06/08 17:54:59 bouyer Exp $");
|
||||
|
||||
#ifndef WDCDEBUG
|
||||
#define WDCDEBUG
|
||||
@ -3619,7 +3619,7 @@ pdc202xx_chip_map(sc, pa)
|
||||
st &= ~(PDC_IS_262(sc) ?
|
||||
PDC262_STATE_EN(channel):PDC246_STATE_EN(channel));
|
||||
pciide_map_compat_intr(pa, cp, channel, interface);
|
||||
pdc202xx_setup_channel(&cp->wdc_channel);
|
||||
sc->sc_wdcdev.set_modes(&cp->wdc_channel);
|
||||
}
|
||||
if (!PDC_IS_268(sc)) {
|
||||
WDCDEBUG_PRINT(("pdc202xx_setup_chip: new controller state "
|
||||
|
Loading…
Reference in New Issue
Block a user