Changeset View
Changeset View
Standalone View
Standalone View
sys/mips/mips/mips_pic.c
Show First 20 Lines • Show All 217 Lines • ▼ Show 20 Lines | if (mips_pic_register_isrcs(sc) != 0) { | ||||
device_printf(dev, "could not register PIC ISRCs\n"); | device_printf(dev, "could not register PIC ISRCs\n"); | ||||
goto cleanup; | goto cleanup; | ||||
} | } | ||||
/* | /* | ||||
* Now, when everything is initialized, it's right time to | * Now, when everything is initialized, it's right time to | ||||
* register interrupt controller to interrupt framefork. | * register interrupt controller to interrupt framefork. | ||||
*/ | */ | ||||
if (intr_pic_register(dev, xref) != 0) { | if (intr_pic_register(dev, xref, NREAL_IRQS) != 0) { | ||||
device_printf(dev, "could not register PIC\n"); | device_printf(dev, "could not register PIC\n"); | ||||
goto cleanup; | goto cleanup; | ||||
} | } | ||||
/* Claim our root controller role */ | /* Claim our root controller role */ | ||||
if (intr_pic_claim_root(dev, xref, mips_pic_intr, sc, 0) != 0) { | if (intr_pic_claim_root(dev, xref, mips_pic_intr, sc, 0) != 0) { | ||||
device_printf(dev, "could not set PIC as a root\n"); | device_printf(dev, "could not set PIC as a root\n"); | ||||
intr_pic_deregister(dev, xref); | intr_pic_deregister(dev, xref); | ||||
▲ Show 20 Lines • Show All 188 Lines • Show Last 20 Lines |