Add Kernel object

- Implement halt()
- Call the system kernel halt() method at the end of kmain()
This commit is contained in:
Eryn Wells 2016-03-23 00:33:45 -04:00
parent 9bf27a3115
commit abfcfd24cd
5 changed files with 86 additions and 1 deletions

View file

@ -10,6 +10,7 @@
#include "Console.hh"
#include "Descriptors.hh"
#include "Interrupts.hh"
#include "Kernel.hh"
#include "Multiboot.hh"
#include "kstd/Types.hh"
@ -74,5 +75,5 @@ kmain(multiboot::Information *information)
interruptHandler.enableInterrupts();
console.printString("Interrupts enabled\n");
for (;;) { }
kernel::Kernel::systemKernel()->halt();
}