[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:
Justin C. Miller
2021-01-23 20:30:09 -08:00
parent 8d325184ad
commit c0f304559f
2 changed files with 3 additions and 6 deletions

View File

@@ -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: