diff options
author | Christian Cunningham <cc@localhost> | 2021-12-03 10:10:58 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2021-12-03 10:10:58 -0700 |
commit | 2164398e58925d23a65314f3a5434e40a1459041 (patch) | |
tree | fb6542c0c7589cd648bc85aa455bacccd7fabd80 /src/lib.c | |
parent | 2affe4c1e52775be8ad5eb0b026987ab712efcee (diff) |
Added Check for GPU Routing
Diffstat (limited to 'src/lib.c')
-rw-r--r-- | src/lib.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -33,6 +33,7 @@ void uart_hexn(unsigned long c_val) { uart_char(0x0a); } +// Initialize IRQs void sysinit() { // Mask Overrun of UART0 store32(1<<4, UART0_IMSC); @@ -117,5 +118,14 @@ void chk_irq_stat() { uart_string(irq_off); } + // Check GPU Interrupt Routing + unsigned long g_val = load32(GPU_INTERRUPTS_ROUTING); + uart_string((char*)"GPU IRQ Routed to Core "); + uart_char(0x30 + (g_val & 0x3)); + uart_char(0x0a); + uart_string((char*)"GPU FIQ Routed to Core "); + uart_char(0x30 + ((g_val>>2) & 0x3)); + uart_char(0x0a); + uart_char(0x0a); } |