mirror of
https://github.com/Fennix-Project/Kernel.git
synced 2025-05-30 00:08:03 +00:00
Do not make modules mandatory
This commit is contained in:
parent
64948bb92f
commit
a93ea49644
@ -132,13 +132,6 @@ SafeFunction NIF void InitLimineAfterStack()
|
|||||||
inf_loop asmv("hlt");
|
inf_loop asmv("hlt");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ModuleResponse == NULL || ModuleResponse->module_count < 1)
|
|
||||||
{
|
|
||||||
error("No module information available [%#lx;%ld]", ModuleResponse,
|
|
||||||
(ModuleResponse == NULL) ? 0 : ModuleResponse->module_count);
|
|
||||||
inf_loop asmv("hlt");
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Actual parsing starts here */
|
/* Actual parsing starts here */
|
||||||
|
|
||||||
for (uint64_t i = 0; i < FrameBufferResponse->framebuffer_count; i++)
|
for (uint64_t i = 0; i < FrameBufferResponse->framebuffer_count; i++)
|
||||||
@ -255,6 +248,8 @@ SafeFunction NIF void InitLimineAfterStack()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ModuleResponse != NULL && ModuleResponse->module_count > 0)
|
||||||
|
{
|
||||||
for (uint64_t i = 0; i < ModuleResponse->module_count; i++)
|
for (uint64_t i = 0; i < ModuleResponse->module_count; i++)
|
||||||
{
|
{
|
||||||
if (i > MAX_MODULES)
|
if (i > MAX_MODULES)
|
||||||
@ -281,6 +276,7 @@ SafeFunction NIF void InitLimineAfterStack()
|
|||||||
binfo.Modules[i].CommandLine,
|
binfo.Modules[i].CommandLine,
|
||||||
binfo.Modules[i].Size);
|
binfo.Modules[i].Size);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
binfo.RSDP = (struct RSDPInfo *)((uintptr_t)RsdpResponse->address - 0xFFFF800000000000);
|
binfo.RSDP = (struct RSDPInfo *)((uintptr_t)RsdpResponse->address - 0xFFFF800000000000);
|
||||||
debug("RSDP: %#lx [Signature: \"%.8s\"] [OEM: \"%.6s\"]",
|
debug("RSDP: %#lx [Signature: \"%.8s\"] [OEM: \"%.6s\"]",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user