mirror of
https://github.com/cowmonk/cowos.git
synced 2025-10-28 15:03:27 +00:00
27 lines
434 B
C
27 lines
434 B
C
#include <gdt.h>
|
|
#include <klibc/string.h>
|
|
#include <drivers/video/vga.h>
|
|
#include <stddef.h>
|
|
#include <bootloader.h>
|
|
|
|
static void
|
|
hcf(void)
|
|
{
|
|
for (;;) {
|
|
__asm__("hlt");
|
|
}
|
|
}
|
|
|
|
void
|
|
kernel_main(void)
|
|
{
|
|
/* Make sure the bootloader understands our base revision */
|
|
if (LIMINE_BASE_REVISION_SUPPORTED == 0) hcf();
|
|
|
|
vga_set_mode_13h();
|
|
|
|
/* initGDT(); */
|
|
|
|
/* done so now hang */
|
|
hcf();
|
|
}
|