aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2021-12-03 10:10:58 -0700
committerChristian Cunningham <cc@localhost>2021-12-03 10:10:58 -0700
commit2164398e58925d23a65314f3a5434e40a1459041 (patch)
treefb6542c0c7589cd648bc85aa455bacccd7fabd80 /src
parent2affe4c1e52775be8ad5eb0b026987ab712efcee (diff)
Added Check for GPU Routing
Diffstat (limited to 'src')
-rw-r--r--src/lib.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib.c b/src/lib.c
index 4493459..1c6ce85 100644
--- a/src/lib.c
+++ b/src/lib.c
@@ -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);
}