summaryrefslogtreecommitdiff
path: root/stage1/32bit.c
blob: 1e4a7ef485d885e2f6a04d3e66c30c50216d2fd6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#define STAGE1
#include "stage1.h"

#include <stddef.h>
#include <stdint.h>
#include <vga.h>
#include <printk.h>
#include <string.h>

void centry(void)
{
	vga_setup(25,80);

	uint8_t color = vga_color(0xF, 0);

	write("Bootloader is set to 32-bit mode.", color);

	while (1) {
		asm ("cli");
		asm ("hlt");
	}
}