Set sc_psim so that the openpic core can correct the off-by-one
error in the number of IRQs that PSIM gives us.
This commit is contained in:
parent
aa037d58ea
commit
66821a4c67
@ -93,6 +93,7 @@ DRIVER_MODULE(openpic, iobus, openpic_iobus_driver, openpic_devclass, 0, 0);
|
||||
static int
|
||||
openpic_iobus_probe(device_t dev)
|
||||
{
|
||||
struct openpic_softc *sc;
|
||||
char *name;
|
||||
|
||||
name = iobus_get_name(dev);
|
||||
@ -104,5 +105,9 @@ openpic_iobus_probe(device_t dev)
|
||||
* probe, so don't do it again here
|
||||
*/
|
||||
device_set_desc(dev, OPENPIC_DEVSTR);
|
||||
|
||||
sc = device_get_softc(dev);
|
||||
sc->sc_psim = 1;
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user