Skip to content

Commit

Permalink
irq 3/3: Support seL4 accelerator changes
Browse files Browse the repository at this point in the history
Signed-off-by: Hannu Lyytinen <[email protected]>
  • Loading branch information
hlyytine committed Nov 1, 2023
1 parent 04ac9c3 commit 7e82dcc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hw/arm/virt.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@


/* Number of external interrupt lines to configure the GIC with */
#define NUM_IRQS 256
#define NUM_IRQS 512

#define PLATFORM_BUS_NUM_IRQS 64

Expand Down Expand Up @@ -186,7 +186,7 @@ static MemMapEntry extended_memmap[] = {
static const int a15irqmap[] = {
[VIRT_UART] = 1,
[VIRT_RTC] = 2,
[VIRT_PCIE] = 3, /* ... to 6 */
[VIRT_PCIE] = 176, /* ... to 6 */
[VIRT_GPIO] = 7,
[VIRT_SECURE_UART] = 8,
[VIRT_ACPI_GED] = 9,
Expand Down
2 changes: 1 addition & 1 deletion hw/pci-host/gpex.c
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ static void gpex_host_realize(DeviceState *dev, Error **errp)

pci->bus = pci_register_root_bus(dev, "pcie.0", gpex_set_irq,
sel4_pci_swizzle_map_irq_fn, s, &s->io_mmio,
&s->io_ioport, 0, 4, TYPE_PCIE_BUS);
&s->io_ioport, 0, GPEX_NUM_IRQS, TYPE_PCIE_BUS);

pci_bus_set_route_irq_fn(pci->bus, gpex_route_intx_pin_to_irq);
qdev_realize(DEVICE(&s->gpex_root), BUS(pci->bus), &error_fatal);
Expand Down
2 changes: 1 addition & 1 deletion include/hw/pci-host/gpex.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ OBJECT_DECLARE_SIMPLE_TYPE(GPEXHost, GPEX_HOST)
#define TYPE_GPEX_ROOT_DEVICE "gpex-root"
OBJECT_DECLARE_SIMPLE_TYPE(GPEXRootState, GPEX_ROOT_DEVICE)

#define GPEX_NUM_IRQS 4
#define GPEX_NUM_IRQS (32*4)

struct GPEXRootState {
/*< private >*/
Expand Down

0 comments on commit 7e82dcc

Please sign in to comment.