28 lines
474 B
C
28 lines
474 B
C
|
#include "hal/hal.h"
|
||
|
#include "drivers/drivers.h"
|
||
|
#include <debugio.h>
|
||
|
#include <time.h>
|
||
|
#include <stdio.h>
|
||
|
#include <stdlib.h>
|
||
|
#include <memory.h>
|
||
|
#include <multiboot.h>
|
||
|
|
||
|
extern uint32 _end;
|
||
|
|
||
|
void k_main(MultibootInfo* info)
|
||
|
{
|
||
|
uint32 KernelEnd = (uint32)&_end;
|
||
|
MemoryTempInitialize(KernelEnd);
|
||
|
|
||
|
ConsoleClear();
|
||
|
HalInitialize();
|
||
|
DriversInstall();
|
||
|
|
||
|
// Set up memory manager
|
||
|
MemoryInitialize(&info_new);
|
||
|
|
||
|
Log("All ready. Starting console...\n\n");
|
||
|
|
||
|
ConsoleMain();
|
||
|
}
|