stkarm/src/kernel.cpp

17 lines
392 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
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("Now firing software interrupt...");
fireswi();
2018-12-30 22:07:00 +00:00
printkl("EOK -- End of Kernel -- Now returning to assembly");
2018-12-28 09:27:49 +00:00
return 0;
}
2018-12-28 10:30:39 +00:00