/**
 * Entry point of the kernel's main function. This function gets called by the
 * assembler bootstrap code
 */

#include "types.h"
#include "multiboot.h"

#include "monitor.h"
#include "hw_utils.h"

uint32_t kernel_main(multiboot_t *multiboot_ptr) {
	screen_t hello_world_screen;
	hello_world_screen.cursor_x = 0;
	hello_world_screen.cursor_y = 0;
	hello_world_screen.background_color = 0;
	hello_world_screen.foreground_color = 15;

	monitor_switch_screen(&hello_world_screen);
	monitor_clear(&hello_world_screen);
	monitor_write(&hello_world_screen, "Hello World!\n");

	__asm__ __volatile__("xchg %bx, %bx");


	return 0xdeadc0de;
}