Only receive the interrupts on the first core, to avoid duplicate interrupts.

This commit is contained in:
cognet 2013-08-02 20:32:26 +00:00
parent bce4a8587d
commit f4eaa79f0b

View File

@ -205,7 +205,7 @@ arm_gic_attach(device_t dev)
for (i = 0; i < nirqs; i += 4) {
gic_d_write_4(GICD_IPRIORITYR(i >> 2), 0);
gic_d_write_4(GICD_ITARGETSR(i >> 2), 0xffffffff);
gic_d_write_4(GICD_ITARGETSR(i >> 2), 1 << 0 | 1 << 8 | 1 << 16 | 1 << 24);
}
/* Set all the interrupts to be in Group 0 (secure) */