More work on x86_64 build, error handling and IDT
[tpg/acess2.git] / Kernel / arch / x86_64 / main.c
1 /*
2  * Acess2 x86_64 Project
3  */
4 #include <acess.h>
5
6 // === IMPORTS ===
7 extern void     Desctab_Init(void);
8 extern void     MM_InitVirt(void);
9
10 // === PROTOTYPES ===
11
12 // === GLOBALS ==
13
14 // === CODE ===
15 void kmain(Uint MbMagic, void *MbInfoPtr)
16 {
17         *(Uint16*)(0xB8000) = 0x1F00|'A';
18         
19         Desctab_Init();
20         *(Uint16*)(0xB8000) = 0x1F00|'B';
21         
22         MM_InitVirt();
23         *(Uint16*)(0xB8000) = 0x1F00|'B';
24         
25         for(;;)
26                 __asm__ __volatile__ ("hlt");
27 }
28
29 void Arch_LoadBootModules(void)
30 {
31         
32 }
33
34 void StartupPrint(char *String)
35 {
36         
37 }

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