forked from M-Labs/zynq-rs
1
0
Fork 0
zynq-rs/libboard_zynq/src
morgan 4168eb63a7 GIC: fix wrong core target config when enabling interrupt (#109)
# Summary

- Before the patch, an extra 1 is added to `target_cpu` and the interrupt will be configured to the wrong CPU target.

| target_cpu | bits set before patch | bits set after patch   |
| -----------| -----------                      | -----------                       |
| core0      | 0b10 (enable interrupt on core1) | 0b01 (enable interrupt on core0)  |
| core1      | 0b11 (enable interrupt on core0 & core1)| 0b10 (enable interrupt on core1) |

- [Correct ICDIPTR Register configuration from AMD](https://docs.xilinx.com/r/en-US/ug585-zynq-7000-SoC-TRM/Software-Generated-Interrupts-SGI?tocId=0TsxAmy8MHRPDsayG96K1Q)

Reviewed-on: M-Labs/zynq-rs#109
Co-authored-by: morgan <mc@m-labs.hk>
Co-committed-by: morgan <mc@m-labs.hk>
2023-12-19 18:41:03 +08:00
..
clocks libboard_zynq: prepare target_kasli_soc 2020-11-19 19:28:17 +01:00
ddr libboard_zynq: prepare target_kasli_soc 2020-11-19 19:28:17 +01:00
devc timer::global: wrap us in Microseconds, impl embedded_hal blocking delay traits 2020-07-22 23:41:15 +02:00
eth remove gpio reset 2023-10-18 17:33:19 +08:00
i2c remove gpio reset 2023-10-18 17:33:19 +08:00
ps7_init libboard_zynq: delint ps7_init 2020-11-13 00:23:56 +01:00
sdio libboard_zynq: prepare target_kasli_soc 2020-11-19 19:28:17 +01:00
timer libboard_zynq: make RegisterBlock constructors more consistent 2020-08-13 14:49:26 +08:00
uart libboard_zynq: prepare target_kasli_soc 2020-11-19 19:28:17 +01:00
axi_gp.rs split into lib{register, cortex_a9, board_zynq, board_zc706} crates 2019-12-17 23:35:58 +01:00
axi_hp.rs split into lib{register, cortex_a9, board_zynq, board_zc706} crates 2019-12-17 23:35:58 +01:00
error_led.rs remove gpio reset 2023-10-18 17:33:19 +08:00
gic.rs GIC: fix wrong core target config when enabling interrupt (#109) 2023-12-19 18:41:03 +08:00
lib.rs add error led 2022-08-26 17:22:42 +08:00
logger.rs timer::global: wrap us in Microseconds, impl embedded_hal blocking delay traits 2020-07-22 23:41:15 +02:00
mpcore.rs more cpu options 2020-09-07 16:13:51 +08:00
slcr.rs Fix soft_rst bit, add reboot function 2022-10-07 12:57:56 +08:00
stdio.rs libboard_zynq: prepare target_kasli_soc 2020-11-19 19:28:17 +01:00
time.rs timer::global: wrap us in Microseconds, impl embedded_hal blocking delay traits 2020-07-22 23:41:15 +02:00