X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Kernel%2Farch%2Fx86_64%2Fmain.c;h=6a1520a21d43159fbb38760ae937f3dd4e35cb09;hb=c6061d381c0af2dcc7c971347d036dc17399887a;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=b98fbd4e9c71447d81fc9bd643fb174c76346e0f;p=tpg%2Facess2.git diff --git a/Kernel/arch/x86_64/main.c b/Kernel/arch/x86_64/main.c index e69de29b..6a1520a2 100644 --- a/Kernel/arch/x86_64/main.c +++ b/Kernel/arch/x86_64/main.c @@ -0,0 +1,34 @@ +/* + * Acess2 x86_64 Project + */ +#include + +// === IMPORTS === +extern void Desctab_Init(void); +extern void MM_InitVirt(void); + +// === PROTOTYPES === + +// === GLOBALS == + +// === CODE === +void kmain(Uint MbMagic, void *MbInfoPtr) +{ + *(Uint16*)(0xB8000) = 0x1F00|'A'; + + Desctab_Init(); + MM_InitVirt(); + + for(;;) + __asm__ __volatile__ ("hlt"); +} + +void Arch_LoadBootModules(void) +{ + +} + +void StartupPrint(char *String) +{ + +}