Curle
97576bab02
Have somehow fixed the drawing routines along the way. I also tried to implement a better keyboard handler, but that's quite a ways away right now.
32 lines
533 B
C
32 lines
533 B
C
#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");
|
|
|
|
SetupInitialGDT();
|
|
SetupIDT();
|
|
InitInterrupts();
|
|
|
|
InitMemoryManager();
|
|
MemoryTest();
|
|
|
|
InitPaging();
|
|
|
|
|
|
for(;;) { }
|
|
|
|
}
|