#include #include #include #include #include extern "C" void go_usr(void); /* KERNEL MAIN */ extern "C" int main(int argc, char** argv) { printkl("Welcome to STKARM -- Simple and Trivial Kernel for Advanced Reduced Instruction Set Computer Machines"); printkl("Installing kernel..."); printkl("Now firing test software interrupt..."); fireswi(); printkl("Now enabling timer..."); Timer::timer[0].set(0x100, Timer::CONTINUOUS, Timer::PRESCALER_128, Timer::LS_OSC); Timer::timer[0].start(); Timer::timer[5].set(0x100, Timer::CONTINUOUS, Timer::PRESCALER_16, Timer::LS_OSC); Timer::timer[5].start(); printkl("Now enabling GIC..."); GIC::enable(); printkl("Now going user..."); go_usr(); printkl("EOK -- End of Kernel -- This point can not be reached"); return 0; }