diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-05-08 20:26:56 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2022-05-08 20:26:56 +0000 |
commit | 7aa8c6d47ede0a8d419ba0c9695933f67f01ffda (patch) | |
tree | 007c1624127e3a32539fd9ad25bc93b4a4414ca8 /sys/src/9/imx8/gic.c | |
parent | cac30a565ebcd596c83f78c07da5d1a35f67f6b6 (diff) |
imx8: implement psci calls for system reset and multicore startup
Diffstat (limited to 'sys/src/9/imx8/gic.c')
-rw-r--r-- | sys/src/9/imx8/gic.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/src/9/imx8/gic.c b/sys/src/9/imx8/gic.c index b788a0082..bfff2eada 100644 --- a/sys/src/9/imx8/gic.c +++ b/sys/src/9/imx8/gic.c @@ -139,18 +139,15 @@ intrinit(void) /* clear all interrupts */ n = ((dregs[GICD_TYPER] & 0x1F)+1) << 5; -print("nirq %d\n", n); for(i = 32; i < n; i += 32){ dregs[GICD_IGROUPR0 + (i/32)] = -1; dregs[GICD_ISENABLER0 + (i/32)] = -1; while(dregs[GICD_CTLR]&(1<<31)) ; -print("%d: distributor stuck disabled: %.8ux\n", i, ~dregs[GICD_ISENABLER0 + (i/32)]); dregs[GICD_ICENABLER0 + (i/32)] = -1; while(dregs[GICD_CTLR]&(1<<31)) ; -print("%d: distributor stuck enabled: %.8ux\n", i, dregs[GICD_ISENABLER0 + (i/32)]); dregs[GICD_ICACTIVER0 + (i/32)] = -1; } for(i = 0; i < n; i += 4){ @@ -174,11 +171,9 @@ print("%d: distributor stuck enabled: %.8ux\n", i, dregs[GICD_ISENABLER0 + (i/3 rregs[GICR_ISENABLER0 + (i/32)] = -1; while(rregs[GICR_CTLR]&(1<<3)) ; -print("%d: re-distributor stuck disabled: %.8ux\n", i, ~rregs[GICR_ISENABLER0 + (i/32)]); rregs[GICR_ICENABLER0 + (i/32)] = -1; while(dregs[GICD_CTLR]&(1<<31)) ; -print("%d: re-distributor stuck enabled: %.8ux\n", i, rregs[GICR_ISENABLER0 + (i/32)]); rregs[GICR_ICACTIVER0 + (i/32)] = -1; } for(i = 0; i < n; i += 4){ |