Enable interrupts and halt CPU

This commit is contained in:
josh committed 2022-09-04 23:03:20 -04:00
1 parent bc7fd3f2fc
commit 43d945b5e8
2 files changed
+13

No files matched your search

+3
View File
@@ -16,6 +16,7 @@ import hulk.pci;
import hulk.gdt;
import hulk.idt;
import hos.cpu;
import ldc.llvmasm;
extern extern(C) __gshared ubyte _hulk_total_size;
@@ -46,8 +47,10 @@ void hulk_start()
hippo.initialize(&hulk_header);
pci.initialize();
sti();
for (;;)
{
hlt();
}
}