Give Kernel a console object
This commit is contained in:
parent
7f72106639
commit
522e788ebd
3 changed files with 27 additions and 6 deletions
|
@ -31,11 +31,28 @@ Kernel::systemKernel()
|
|||
* Public
|
||||
*/
|
||||
|
||||
Kernel::Kernel()
|
||||
: mConsole()
|
||||
{ }
|
||||
|
||||
|
||||
void
|
||||
Kernel::initialize()
|
||||
{
|
||||
mConsole.clear(kernel::Console::Color::Blue);
|
||||
mConsole.printString("Loading Polka...\n");
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
Kernel::panic(const char* msg,
|
||||
...)
|
||||
{
|
||||
|
||||
mConsole.clear(Console::Color::Magenta);
|
||||
mConsole.printString("PANIC! PANIC! PANIC! :-(\n");
|
||||
mConsole.printString(msg);
|
||||
// TODO: Dump registers.
|
||||
halt();
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue