stkarm/src/kernel.cpp

24 lines
512 B
C++
Raw Normal View History

2018-12-28 10:30:39 +00:00
#include <dbg.h>
#include <stdint.h>
#include <interrupt.h>
2018-12-28 09:27:49 +00:00
extern "C" void go_usr(void);
2018-12-28 10:30:39 +00:00
/* KERNEL MAIN */
2018-12-28 09:27:49 +00:00
extern "C" int main(int argc, char** argv) {
2018-12-28 10:30:39 +00:00
printkl("Welcome to STKARM -- Simple and Trivial Kernel for Advanced Reduced Instruction Set Computer Machines");
2018-12-28 09:27:49 +00:00
printkl("Installing kernel...");
printkl("Now firing test software interrupt...");
fireswi();
printkl("Go user...");
go_usr();
printkl("EOK -- End of Kernel -- This point can not be reached");
2018-12-28 09:27:49 +00:00
return 0;
}
2018-12-28 10:30:39 +00:00