Limine modules request, run with 1GB pages support for x86_64
This commit is contained in:
@ -40,12 +40,19 @@ static volatile struct limine_framebuffer_request FB_REQ = {
|
||||
.id = LIMINE_FRAMEBUFFER_REQUEST, .revision = 0,
|
||||
};
|
||||
|
||||
static volatile struct limine_module_request MODULE_REQ = {
|
||||
.id = LIMINE_MODULE_REQUEST, .revision = 0,
|
||||
};
|
||||
|
||||
void bootinfo_init(void) {
|
||||
if (FB_REQ.response == NULL || FB_REQ.response->framebuffer_count < 1) {
|
||||
hal_hang();
|
||||
}
|
||||
BOOT_INFO.fb = FB_REQ.response->framebuffers[0];
|
||||
|
||||
struct limine_module_response *modulesres= MODULE_REQ.response;
|
||||
BOOT_INFO.modules = modulesres;
|
||||
|
||||
struct limine_paging_mode_response *pagingres = PAGING_REQ.response;
|
||||
#if defined(__x86_64__)
|
||||
if (pagingres->mode != LIMINE_PAGING_MODE_X86_64_4LVL) {
|
||||
|
@ -22,6 +22,7 @@ typedef struct {
|
||||
LIMINE_PTR(struct limine_smp_response *) smp;
|
||||
uint64_t smp_bspindex;
|
||||
LIMINE_PTR(struct limine_framebuffer *) fb;
|
||||
LIMINE_PTR(struct limine_module_response *) modules;
|
||||
} BootInfo;
|
||||
|
||||
extern BootInfo BOOT_INFO;
|
||||
|
Reference in New Issue
Block a user