Return a reference to Kernel from systemKernel()

This commit is contained in:
Eryn Wells 2016-03-23 00:55:42 -04:00
parent abfcfd24cd
commit 7f72106639
3 changed files with 4 additions and 4 deletions

View file

@ -21,10 +21,10 @@ namespace kernel {
* Static
*/
Kernel*
Kernel&
Kernel::systemKernel()
{
return &sKernel;
return sKernel;
}
/*

View file

@ -16,7 +16,7 @@ namespace kernel {
struct Kernel
{
static Kernel* systemKernel();
static Kernel& systemKernel();
void panic(const char* msg, ...);

View file

@ -75,5 +75,5 @@ kmain(multiboot::Information *information)
interruptHandler.enableInterrupts();
console.printString("Interrupts enabled\n");
kernel::Kernel::systemKernel()->halt();
kernel::Kernel::systemKernel().halt();
}