33 lines
1.0 KiB
C
33 lines
1.0 KiB
C
//----------------------------------------------------------------------------//
|
|
// GNU GPL OS/K //
|
|
// //
|
|
// Authors: spectral` //
|
|
// NeoX //
|
|
// //
|
|
// Desc: Kernel entry point //
|
|
//----------------------------------------------------------------------------//
|
|
|
|
#include <kalkern/init.h>
|
|
#include <kalkern/ke/state.h>
|
|
#include <kalkern/ke/panic.h>
|
|
#include <kalkern/io/terminal.h>
|
|
|
|
//
|
|
// Entry point of kaleid-kernel.elf
|
|
//
|
|
void StartKern(void)
|
|
{
|
|
// we're not ready to deal with interrupts
|
|
DisableInterrupts();
|
|
|
|
// booting!
|
|
SetKernState(KSTATE_INIT);
|
|
|
|
// kernel terminals
|
|
InitTerms();
|
|
|
|
// we're out
|
|
StartPanic("Goodbye World :(");
|
|
}
|
|
|