mirror of
https://github.com/justinian/jsix.git
synced 2025-12-10 00:14:32 -08:00
[boot] Send module addresses as physical
This makes the job of the kernel easier when marking module pages as used in the frame allocator. This will also help when sending modules over to the init process.
This commit is contained in:
@@ -152,11 +152,6 @@ uefi_preboot(uefi::handle image, uefi::system_table *st)
|
||||
loader::load_program(program, desc.name, buf, bs);
|
||||
}
|
||||
|
||||
for (unsigned i = 0; i < args->num_modules; ++i) {
|
||||
args::module &mod = args->modules[i];
|
||||
change_pointer(mod.location);
|
||||
}
|
||||
|
||||
return args;
|
||||
}
|
||||
|
||||
|
||||
@@ -98,9 +98,11 @@ kernel_main(args::header *header)
|
||||
|
||||
for (size_t i = 0; i < header->num_modules; ++i) {
|
||||
args::module &mod = header->modules[i];
|
||||
void *virt = memory::to_virtual<void>(mod.location);
|
||||
|
||||
switch (mod.type) {
|
||||
case args::mod_type::symbol_table:
|
||||
new symbol_table {mod.location, mod.size};
|
||||
new symbol_table {virt, mod.size};
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user