Parse multiboot information
This commit is contained in:
@@ -2,18 +2,20 @@
|
||||
#include <serial.h>
|
||||
#include <vga.h>
|
||||
#include <debug.h>
|
||||
#include <multiboot.h>
|
||||
|
||||
void kmain()
|
||||
void kmain(uint64_t multiboot_magic, void *multiboot_data)
|
||||
{
|
||||
serial_init(PORT_COM1);
|
||||
vga_init();
|
||||
debug_printf("kernel loaded\n");
|
||||
|
||||
debug("Hello from debug printing function!\n");
|
||||
debug("A number:%d\n", 12345);
|
||||
debug_info("Here's some info\n");
|
||||
debug_ok("This thing worked well!\n");
|
||||
debug_warning("Careful!\n");
|
||||
debug_error("Something went wrong!\n");
|
||||
|
||||
parse_multiboot(multiboot_magic, P2V(multiboot_data));
|
||||
|
||||
debug_printf("Hello from debug printing function!\n");
|
||||
debug_printf("A number:%d\n", 12345);
|
||||
debug_printf("Multiboot data: %x, magic: %x\n", multiboot_data, multiboot_magic);
|
||||
|
||||
PANIC("Reached end of kernel main function\n");
|
||||
for(;;);
|
||||
|
||||
Reference in New Issue
Block a user