Kernel/armv7 - Missing files for 25398a7f24d189ee7a70fcf0e64827cbc8999028
[tpg/acess2.git] / KernelLand / Kernel / arch / armv7 / main.c
index 248c17c..b5176b2 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <acess.h>
 #include <modules.h>
+#include "include/options.h"
 
 // === IMPORTS ===
 extern void    Interrupts_Setup(void);
@@ -15,6 +16,8 @@ extern void   Arch_LoadBootModules(void);
 extern void    Heap_Install(void);
 extern void    Threads_Init(void);
 extern void    System_Init(const char *Commandline);
+extern void    Time_Setup(void);
+extern void    Debug_int_SerialIRQHandler(int IRQ, void *unused);
 
 // === PROTOTYPES ===
  int   kmain(void);
@@ -39,7 +42,11 @@ int kmain(void)
        VFS_Init();
 
        // Boot modules?
+       // - most ARMv7 configs use a GIC
        Module_EnsureLoaded("armv7_GIC");
+       IRQ_AddHandler(UART0_IRQ, Debug_int_SerialIRQHandler, NULL);
+       
+       Time_Setup();
 
        //
        LogF("Moving to arch-independent init\n");

UCC git Repository :: git.ucc.asn.au