Kernel/armv7 - Added IRQ stack, changed IRQs to be disabled until after handling
[tpg/acess2.git] / Kernel / arch / armv7 / main.c
1 /*
2  * Acess2
3  *
4  * ARM7 Entrypoint
5  * arch/arm7/main.c
6  */
7 #include <acess.h>
8 #include <modules.h>
9
10 // === IMPORTS ===
11 extern void     Interrupts_Setup(void);
12 extern void     Arch_LoadBootModules(void);
13 extern void     Heap_Install(void);
14 extern void     Threads_Init(void);
15 extern void     System_Init(const char *Commandline);
16
17 // === PROTOTYPES ===
18  int    kmain(void);
19
20 // === CODE ===
21 int kmain(void)
22 {
23         LogF("Acess2 ARMv7 v"EXPAND_STR(KERNEL_VERSION)"\n");
24         LogF(" Build %i\n", BUILD_NUM);
25 //      Interrupts_Setup();
26         
27         MM_SetupPhys();
28
29         LogF("Heap Setup...\n");
30         Heap_Install();
31
32         LogF("Threads Init...\n");
33         Threads_Init();
34         
35         LogF("VFS Init...\n");
36         VFS_Init();
37
38         // Boot modules?
39         Module_EnsureLoaded("armv7_GIC");
40
41         //
42         LogF("Moving to arch-independent init\n");
43         System_Init("");
44         //TODO: 
45         LogF("End of kmain(), for(;;) Threads_Sleep();\n");
46         for(;;)
47                 Threads_Sleep();
48 }
49
50 void Arch_LoadBootModules(void)
51 {
52 }
53

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