For whatever reason, we just can't call pci_init() that early on Bandit
systems. Why? Who knows. Firmware bugs, maybe. In any case, moving the call out of the ADB path works. "Good enough for me."
This commit is contained in:
parent
adadf5ecc7
commit
3c5aad8d3c
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: machdep.c,v 1.43 1999/05/06 19:24:47 thorpej Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.44 1999/05/07 22:20:38 wrstuden Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||
|
@ -1117,12 +1117,6 @@ cninit()
|
|||
int stdout;
|
||||
char type[16];
|
||||
|
||||
/*
|
||||
* Initialize the PCI chipsets; can't map configuration
|
||||
* space registers yet!
|
||||
*/
|
||||
pci_init(0);
|
||||
|
||||
l = OF_getprop(chosen, "stdout", &stdout, sizeof(stdout));
|
||||
if (l != sizeof(stdout))
|
||||
goto nocons;
|
||||
|
@ -1157,7 +1151,7 @@ cninit()
|
|||
return;
|
||||
}
|
||||
|
||||
node = OF_instance_to_package(stdout);
|
||||
node = OF_instance_to_package(stdin);
|
||||
bzero(type, sizeof(type));
|
||||
l = OF_getprop(node, "name", type, sizeof(type));
|
||||
if (l == -1 || l >= sizeof(type) - 1) {
|
||||
|
@ -1190,6 +1184,12 @@ cninit()
|
|||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
* Initialize the PCI chipsets; can't map configuration
|
||||
* space registers yet!
|
||||
*/
|
||||
pci_init(0);
|
||||
|
||||
/*
|
||||
* We're not an ADB keyboard; must be USB. The parent
|
||||
* node is pointing at the root hub. We need to traverse
|
||||
|
|
Loading…
Reference in New Issue