diff options
author | Christian Cunningham <cc@localhost> | 2022-03-24 18:52:56 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-03-24 18:52:56 -0700 |
commit | 7753da66d7d72f441dadd76f357fd5ceb50e7c8f (patch) | |
tree | c79cee644108ecb65952eff2104127a19e72d0c4 /kernel/sys | |
parent | 78493b1d441ef888910cf958a16f260bc3c1a7bd (diff) |
Modularize Userspace
Diffstat (limited to 'kernel/sys')
-rw-r--r-- | kernel/sys/core.c | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/kernel/sys/core.c b/kernel/sys/core.c index 7f42d6e..4812b00 100644 --- a/kernel/sys/core.c +++ b/kernel/sys/core.c @@ -18,32 +18,15 @@ // Initialize IRQs void sysinit(void) { - // Initialize System Globals - //stimeh = *(unsigned long*)SYS_TIMER_CHI; - //stimel = *(unsigned long*)SYS_TIMER_CLO; - //*(unsigned long*) SYS_TIMER_C0 = 2000000 + stimeh; // 2 second trigger + // Get the frequency + cntfrq = read_cntfrq(); + + // Initialize UART uart_init(); - ///... // Route GPU interrupts to Core 0 store32(0x00, GPU_INTERRUPTS_ROUTING); - //// Mask Overrun of UART0 - //store32(1<<4, UART0_IMSC); - //// Enable UART GPU IRQ - //store32(1<<25, IRQ_ENABLE2); - //// Enable Timer - ////// Get the frequency - //cntfrq = read_cntfrq(); - //// Clear cntv interrupt and set next 1 second timer - //write_cntv_tval(cntfrq); - //// Route timer to core0 fiq - //routing_core0cntv_to_core0fiq(); - //// Enable timer - //enablecntv(); - //// Enable system timer - //store32(SYS_TIMER_SC_M0, IRQ_ENABLE1); - // Graphics Initialize lfb_init(); lfb_showpicture(); |