// // main.cpp // #include "kernel.h" #include int main (void) { // cannot return here because some destructors used in CKernel are not implemented CKernel Kernel; if (!Kernel.Initialize ()) { halt (); return EXIT_HALT; } TShutdownMode ShutdownMode = Kernel.Run (); switch (ShutdownMode) { case ShutdownReboot: reboot (); return EXIT_REBOOT; case ShutdownHalt: default: halt (); return EXIT_HALT; } }