aboutsummaryrefslogtreecommitdiff
path: root/src/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.c')
-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);
}