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 * Static
*/ */
Kernel* Kernel&
Kernel::systemKernel() Kernel::systemKernel()
{ {
return &sKernel; return sKernel;
} }
/* /*

View file

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

View file

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