2018-12-20 18:03:39 +01:00
|
|
|
//----------------------------------------------------------------------------//
|
|
|
|
// GNU GPL OS/K //
|
|
|
|
// //
|
|
|
|
// Authors: spectral` //
|
|
|
|
// NeoX //
|
|
|
|
// //
|
|
|
|
// Desc: Kernel entry point //
|
|
|
|
//----------------------------------------------------------------------------//
|
|
|
|
|
2018-12-30 20:13:56 +01:00
|
|
|
#include <kaleid/kernel/init.h>
|
|
|
|
#include <kaleid/kernel/ke/panic.h>
|
|
|
|
#include <kaleid/kernel/io/terminal.h>
|
2018-12-20 18:03:39 +01:00
|
|
|
|
2018-12-25 19:09:58 +01:00
|
|
|
//
|
|
|
|
// Entry point of kaleid-kernel.elf
|
|
|
|
//
|
2018-12-30 20:13:56 +01:00
|
|
|
void DosStartKern(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
|
|
|
|
DosDisableInterrupts();
|
|
|
|
|
|
|
|
// booting!
|
2018-12-29 23:51:00 +01:00
|
|
|
DosSetKernState(KSTATE_INIT);
|
|
|
|
|
2018-12-30 20:13:56 +01:00
|
|
|
// kernel terminals
|
2018-12-29 23:51:00 +01:00
|
|
|
DosInitTerms();
|
2018-12-30 20:13:56 +01:00
|
|
|
|
|
|
|
// we're out
|
2018-12-29 23:51:00 +01:00
|
|
|
DosPanic("Goodbye World :(");
|
2018-12-20 18:03:39 +01:00
|
|
|
}
|
|
|
|
|