Big code refactor, get rid of HAL entirely
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
#include <limine.h>
|
||||
#include "kprintf.h"
|
||||
#include "banner.h"
|
||||
#include "hal/hal.h"
|
||||
#include "bootinfo/bootinfo.h"
|
||||
#include "pmm/pmm.h"
|
||||
#include "term/term.h"
|
||||
@ -15,6 +14,9 @@
|
||||
#include "randcrypto/randcrypto.h"
|
||||
#include "time/time.h"
|
||||
#include "diskpart/diskpart.h"
|
||||
#include "vmm/vmm.h"
|
||||
#include "cpu/hang.h"
|
||||
#include "cpu/gdt.h"
|
||||
|
||||
void log_bootinfo(void) {
|
||||
char buf[100];
|
||||
@ -34,16 +36,17 @@ static volatile LIMINE_BASE_REVISION(2);
|
||||
|
||||
void kmain(void) {
|
||||
if (LIMINE_BASE_REVISION_SUPPORTED == false) {
|
||||
hal_hang();
|
||||
cpu_hang();
|
||||
}
|
||||
|
||||
bootinfo_init();
|
||||
term_init(BOOT_INFO.fb->address);
|
||||
log_bootinfo();
|
||||
log_time();
|
||||
hal_init();
|
||||
gdt_init();
|
||||
intr_init();
|
||||
pmm_init();
|
||||
hal_vmm_init();
|
||||
vmm_init();
|
||||
randcrypto_init();
|
||||
dev_init();
|
||||
storedev_init();
|
||||
|
||||
Reference in New Issue
Block a user