35 lines
623 B
C
35 lines
623 B
C
#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"
|
|
#include "paging/paging.h"
|
|
#include "dlmalloc/malloc.h"
|
|
#include "vfs/vfs.h"
|
|
#include "baseimg/baseimg.h"
|
|
#include "storedev/storedev.h"
|
|
|
|
static volatile LIMINE_BASE_REVISION(2);
|
|
|
|
void kmain(void) {
|
|
if (LIMINE_BASE_REVISION_SUPPORTED == false) {
|
|
hal_hang();
|
|
}
|
|
|
|
bootinfo_init();
|
|
term_init();
|
|
hal_init();
|
|
pmm_init();
|
|
paging_init();
|
|
dlmalloc_check();
|
|
storedev_init();
|
|
baseimg_init();
|
|
vfs_init();
|
|
|
|
kprintf(BANNER_TEXT "\n");
|
|
|
|
hal_hang();
|
|
}
|