blob: 5d2afc87b2f1525183606734e2fb9939c2f2ce75 (
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
38
39
40
41
42
43
44
45
46
47
|
// MIT License, Copyright (c) 2021 Marvin Borner
#include <a20.h>
#include <acpi.h>
#include <config.h>
#include <def.h>
#include <device.h>
#include <gui.h>
#include <ide.h>
#include <interrupt.h>
#include <log.h>
#include <memory.h>
#include <pci.h>
#include <pic.h>
/**
* Entry
*/
u8 boot_disk = 0;
int start(u8 disk);
int start(u8 disk)
{
boot_disk = disk;
memory_map();
a20_enable();
vga_clear();
serial_install();
pic_install();
idt_install();
pci_probe();
device_print();
config_read();
gui_draw();
// Sleep and wait for interrupts
__asm__ volatile("sti");
while (1)
__asm__ volatile("hlt");
return 0;
}
|