blob: 2c7d0630b96d4f4602c947594516900ef6642acc (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// MIT License, Copyright (c) 2020 Marvin Borner
#include <boot.h>
#include <def.h>
#include <fs.h>
#include <gui.h>
#include <interrupts.h>
#include <keyboard.h>
#include <print.h>
#include <serial.h>
u32 HEAP = 0x00200000;
u32 HEAP_START;
void main(struct mem_info *mem_info, struct vid_info *vid_info)
{
HEAP_START = HEAP; // For malloc function
interrupts_install();
keyboard_install();
mem_info++; // TODO: Use the mmap (or remove)!
vesa_init(vid_info->info);
u32 terminal_background[3] = { 0x1d, 0x1f, 0x24 };
vesa_fill(terminal_background);
serial_install();
ls_root();
gui_init("/font/spleen-16x32.psfu");
u32 c[] = { 0xff, 0xff, 0xff };
gui_write(0, 0, c, "Hello, world!");
while (1) {
};
}
|