summaryrefslogtreecommitdiffstats
path: root/kernel/main.c
blob: 5b146bb2f4f218a77346cd24c68d15ff3c4e50d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "video/console/vgacon.h"
#include "gdt.h"

/* Check if the compiler thinks you are targeting the wrong operating system. */
#if defined(__linux__)
#error "You are not using a cross-compiler, you will most certainly run into trouble"
#endif

#if !defined(__i386__)
#error "This kernel needs to be compiled with a ix86-elf compiler"
#endif
void kernel_main(void) 
{
	init_segmentation();

	/* Initialize VGA video hardware */
	vgacon_init();

	vgacon_print("Welcome to MFSOS!\n");
}