Add Kernel object
- Implement halt() - Call the system kernel halt() method at the end of kmain()
This commit is contained in:
parent
9bf27a3115
commit
abfcfd24cd
5 changed files with 86 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue