Revision bf3bc4c4
b/hw/spapr.c | ||
---|---|---|
801 | 801 |
|
802 | 802 |
/* Set up Interrupt Controller */ |
803 | 803 |
spapr->icp = xics_system_init(XICS_IRQS); |
804 |
spapr->next_irq = 16;
|
|
804 |
spapr->next_irq = XICS_IRQ_BASE;
|
|
805 | 805 |
|
806 | 806 |
/* Set up EPOW events infrastructure */ |
807 | 807 |
spapr_events_init(spapr); |
b/hw/xics.c | ||
---|---|---|
549 | 549 |
|
550 | 550 |
ics = g_malloc0(sizeof(*ics)); |
551 | 551 |
ics->nr_irqs = nr_irqs; |
552 |
ics->offset = 16;
|
|
552 |
ics->offset = XICS_IRQ_BASE;
|
|
553 | 553 |
ics->irqs = g_malloc0(nr_irqs * sizeof(struct ics_irq_state)); |
554 | 554 |
|
555 | 555 |
icp->ics = ics; |
b/hw/xics.h | ||
---|---|---|
28 | 28 |
#define __XICS_H__ |
29 | 29 |
|
30 | 30 |
#define XICS_IPI 0x2 |
31 |
#define XICS_IRQ_BASE 0x10 |
|
31 | 32 |
|
32 | 33 |
struct icp_state; |
33 | 34 |
|
Also available in: Unified diff