Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/arm/gic.c
Show First 20 Lines • Show All 705 Lines • ▼ Show 20 Lines | #endif | ||||
gic_d_write_4(sc, GICD_CTLR, 0x01); | gic_d_write_4(sc, GICD_CTLR, 0x01); | ||||
#ifndef INTRNG | #ifndef INTRNG | ||||
return (0); | return (0); | ||||
#else | #else | ||||
/* | /* | ||||
* 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, sc->nirqs) != 0) { | ||||
device_printf(dev, "could not register PIC\n"); | device_printf(dev, "could not register PIC\n"); | ||||
goto cleanup; | goto cleanup; | ||||
} | } | ||||
/* | /* | ||||
* Controller is root if: | * Controller is root if: | ||||
* - doesn't have interrupt parent | * - doesn't have interrupt parent | ||||
* - his interrupt parent is this controller | * - his interrupt parent is this controller | ||||
▲ Show 20 Lines • Show All 1,084 Lines • Show Last 20 Lines |