polka/src/Kernel.hh

39 lines
529 B
C++
Raw Normal View History

/* Kernel.hh
* vim: set tw=80:
* Eryn Wells <eryn@erynwells.me>
*/
/**
* Kernel object. This is the highest level object in the system.
*/
#ifndef __KERNEL_HH__
#define __KERNEL_HH__
#include "Attributes.hh"
2016-03-23 00:56:00 -04:00
#include "Console.hh"
namespace kernel {
struct Kernel
{
static Kernel& systemKernel();
2016-03-23 00:56:00 -04:00
Kernel();
void initialize();
void panic(const char* msg, ...);
void halt() NORETURN;
2016-03-23 00:56:00 -04:00
Console& console();
2016-03-23 00:56:00 -04:00
private:
Console mConsole;
};
} /* namespace kernel */
#endif /* __KERNEL_HH__ */