diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-02-03 12:56:21 +0100 |
---|---|---|
committer | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2021-02-15 21:39:17 +0000 |
commit | feda9d5de9ef640f047617312b6491713381a59a (patch) | |
tree | e13c498aa3072987506b8c29efc90164179f63a7 | |
parent | 7f28286f5cb1ca682e3ba0a8706d8884f12bc49e (diff) | |
download | openbios-feda9d5de9ef640f047617312b6491713381a59a.zip openbios-feda9d5de9ef640f047617312b6491713381a59a.tar.gz openbios-feda9d5de9ef640f047617312b6491713381a59a.tar.bz2 |
40p: Allow Raven controller to handle all IRQs
In commit ce7fa4d29b we adapted to match QEMU (invalid) code.
Now than QEMU has been fixed and handle the 4 IRQs, update the
OF device tree again.
Reported-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
-rw-r--r-- | drivers/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci.c b/drivers/pci.c index 34ae69a..b05ca3b 100644 --- a/drivers/pci.c +++ b/drivers/pci.c @@ -2009,7 +2009,7 @@ static void ob_pci_host_bus_interrupt(ucell dnode, u32 *props, int *ncells, u32 /* Use the same "physical" routing as QEMU's raven_map_irq() although ultimately all 4 PCI interrupts are ORd to IRQ 15 as indicated by the PReP specification */ - props[(*ncells)++] = arch->irqs[((intno - 1) + (addr >> 11)) & 1]; + props[(*ncells)++] = arch->irqs[((intno - 1) + (addr >> 11)) & 3]; } props[(*ncells)++] = 1; } |