os/kernel/kernel.c

18 lines
414 B
C
Raw Normal View History

#include "multiboot.h"
2022-05-05 17:07:39 +00:00
#include "console.h"
#include "kprintf.h"
#if defined (__linux__)
#error "You are not using a cross-compiler, you will most certainly run into trouble"
#endif
2022-05-02 14:26:07 +00:00
#if !defined (__x86_64__)
#error "The kernel needs to be compiled with a x86_64-elf compiler"
#endif
2022-05-03 22:29:13 +00:00
void kernel_main (multiboot_info_t *multiboot_struct_addr)
{
2022-05-05 17:07:39 +00:00
console_init(multiboot_struct_addr);
kprintf("Hello World");
}