Commit b7869bf
committed
loader: fix qemu GIC addresses
Running qemu with -d guest_errors would previously print out
LDR|INFO: Setting all interrupts to Group 1
LDR|INFO: GICv2 ITLinesNumber: 0x00000000
gic_cpu_write: Bad offset 80
gicv2m_write: Bad offset 4
The first write is supposed to be into the GIC_DIST region, then the
second into the GIC_CPU region. Cross referencing to QEMU [1], the GIC
addresses in loader.c are incorrect. Now microkit prints:
LDR|INFO: Setting all interrupts to Group 1
LDR|INFO: GICv2 ITLinesNumber: 0x00000008
The generated seL4 devices_gen.h from the DTS is correct, this is purely
a microkit issue.
[1]: https://github.com/qemu/qemu/blame/de278e54/hw/arm/virt.c#L164-L165
Signed-off-by: julia <git.ts@trainwit.ch>1 parent 87e3e80 commit b7869bf
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
623 | | - | |
| 623 | + | |
624 | 624 | | |
625 | 625 | | |
626 | 626 | | |
| |||
0 commit comments