Kernel/arm7 - Fiddling on process switching
[tpg/acess2.git] / Kernel / arch / arm7 / main.c
index 4520b80..b6186bb 100644 (file)
@@ -9,6 +9,9 @@
 // === IMPORTS ===
 extern void    Interrupts_Setup(void);
 extern void    Arch_LoadBootModules(void);
+extern void    Heap_Install(void);
+extern void    Threads_Init(void);
+extern void    System_Init(const char *Commandline);
 
 // === PROTOTYPES ===
  int   kmain(void);
@@ -16,12 +19,28 @@ extern void Arch_LoadBootModules(void);
 // === CODE ===
 int kmain(void)
 {
-       LogF("Booting...\n");
+       LogF("Acess2 ARMv7 v"EXPAND_STR(KERNEL_VERSION)"\n");
+       LogF(" Build %i\n", BUILD_NUM);
 //     Interrupts_Setup();
        
        MM_SetupPhys();
+
+       LogF("Heap Setup...\n");
+       Heap_Install();
+
+       LogF("Threads Init...\n");
+       Threads_Init();
        
+       LogF("VFS Init...\n");
+       VFS_Init();
+
+       // Boot modules?
+
+       //
+       LogF("Moving to arch-independent init\n");
+       System_Init("");
        //TODO: 
+       LogF("End of kmain(), for(;;);\n");
        for(;;);
 }
 

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