1
0
mirror of https://gitlab.os-k.eu/os-k-team/os-k.git synced 2023-08-25 14:03:10 +02:00
os-k/src/kaleid/kernel/init.c

33 lines
1.0 KiB
C
Raw Normal View History

//----------------------------------------------------------------------------//
// GNU GPL OS/K //
// //
// Authors: spectral` //
// NeoX //
// //
// Desc: Kernel entry point //
//----------------------------------------------------------------------------//
2019-01-01 13:09:57 +01:00
#include <kalkern/init.h>
#include <kalkern/ke/state.h>
#include <kalkern/ke/panic.h>
#include <kalkern/io/terminal.h>
2018-12-25 19:09:58 +01:00
//
// Entry point of kaleid-kernel.elf
//
2019-01-01 13:09:57 +01:00
void StartKern(void)
2018-12-29 23:51:00 +01:00
{
2018-12-30 20:13:56 +01:00
// we're not ready to deal with interrupts
2019-01-01 13:09:57 +01:00
DisableInterrupts();
2018-12-30 20:13:56 +01:00
// booting!
2019-01-01 13:09:57 +01:00
SetKernState(KSTATE_INIT);
2018-12-29 23:51:00 +01:00
2018-12-30 20:13:56 +01:00
// kernel terminals
2019-01-01 13:09:57 +01:00
InitTerms();
2018-12-30 20:13:56 +01:00
// we're out
2019-01-01 13:09:57 +01:00
StartPanic("Goodbye World :(");
}