2022-04-25 19:16:07 +00:00
|
|
|
#include "multiboot.h"
|
2022-05-05 17:07:39 +00:00
|
|
|
#include "console.h"
|
|
|
|
#include "kprintf.h"
|
2022-04-25 19:16:07 +00:00
|
|
|
|
|
|
|
#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"
|
2022-04-25 19:16:07 +00:00
|
|
|
#endif
|
|
|
|
|
2022-05-03 22:29:13 +00:00
|
|
|
void kernel_main (multiboot_info_t *multiboot_struct_addr)
|
2022-04-25 19:16:07 +00:00
|
|
|
{
|
2022-05-05 17:07:39 +00:00
|
|
|
console_init(multiboot_struct_addr);
|
|
|
|
kprintf("Hello World");
|
2022-04-25 19:16:07 +00:00
|
|
|
}
|