diff options
Diffstat (limited to 'src/kernel/core/kmain.c')
-rw-r--r-- | src/kernel/core/kmain.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/kernel/core/kmain.c b/src/kernel/core/kmain.c index 005f449..3ee2238 100644 --- a/src/kernel/core/kmain.c +++ b/src/kernel/core/kmain.c @@ -248,6 +248,12 @@ fs_t *setup_iofs(multiboot_info_t *mbd) { ASSERT(nullfs_add_ram_file(iofs, name, (char*)mods[i].mod_start, len, FM_READ | FM_MMAP)); + + if (strncmp(modname, "kernel.map", 10) == 0) { + // remark: load_kernel_symbol_map modifies the data region, + // which is not a problem because nullfs_add_ram_file copied the thing already + load_kernel_symbol_map((char*)mods[i].mod_start, len); + } } return iofs; |