aboutsummaryrefslogtreecommitdiff
path: root/apps/init.c
blob: f087b41cfc37e4ac9a86457a249ba5da57406a0b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// MIT License, Copyright (c) 2020 Marvin Borner

#include <conv.h>
#include <def.h>
#include <mem.h>
#include <print.h>
#include <sys.h>
#include <vesa.h>

void main(struct vbe *vbe)
{
	print("Init loaded.\n");
	printf("VBE: %dx%d\n", vbe->width, vbe->height);

	const u32 color[3] = { 0, 0xff, 0 };
	vesa_fill(vbe, color);

	/* exec("/a"); */
	/* exec("/b"); */
	exit();
}