Chroma/chroma/kernel.c

33 lines
567 B
C
Raw Normal View History

#include <kernel/chroma.h>
size_t KernelAddr = (size_t) &LoadAddr;
size_t KernelEnd = (size_t) &end;
void _start(void) {
SerialPrintf("\r\nBooting Chroma..\r\n");
SerialPrintf("Kernel loaded at 0x%p, ends at 0x%p, is %d bytes long.\r\n", KernelAddr, KernelEnd, KernelEnd - KernelAddr);
ListMemoryMap();
InitPrint();
WriteStringWithFont("Initty Testing");
2020-07-07 00:21:18 +00:00
WriteStringWithFont("Lenny");
SetupInitialGDT();
SetupIDT();
InitInterrupts();
InitMemoryManager();
MemoryTest();
InitPaging();
for(;;) { }
}