From fc3002f17b1e698cd73d57d000e1f28269980daa Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Thu, 20 Jan 2022 14:46:12 -0700 Subject: Route timer to FIQ --- src/sys/core.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/sys/core.c b/src/sys/core.c index c1c75ba..5bf631f 100644 --- a/src/sys/core.c +++ b/src/sys/core.c @@ -28,7 +28,7 @@ void testlocal(void); void sysinit(void) { // Route GPU interrupts to Core 0 - store32(0x00, GPU_INTERRUPTS_ROUTING); + store32(0x04, GPU_INTERRUPTS_ROUTING); // Mask Overrun of UART0 store32(1<<4, UART0_IMSC); @@ -41,8 +41,10 @@ void sysinit(void) cntfrq = read_cntfrq(); // Clear cntv interrupt and set next 1 second timer write_cntv_tval(cntfrq); - // Route timer to core0 irq - routing_core0cntv_to_core0irq(); + //// Route timer to core0 irq + //routing_core0cntv_to_core0irq(); + // Route timer to core0 fiq + routing_core0cntv_to_core0fiq(); // Enable timer enablecntv(); -- cgit v1.2.1