aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/core
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2016-07-13 22:50:15 +0200
committerAlex Auvolat <alex@adnab.me>2016-07-13 22:50:15 +0200
commit62a023ba570bac31a952d574f834249dee6c3d11 (patch)
treea0959d5e59659940524132707dadf490cb22abd4 /src/kernel/core
parent360da84db0d7165c84d160b518f39cd16006c758 (diff)
downloadkogata-62a023ba570bac31a952d574f834249dee6c3d11.tar.gz
kogata-62a023ba570bac31a952d574f834249dee6c3d11.zip
Fix tests
Diffstat (limited to 'src/kernel/core')
-rw-r--r--src/kernel/core/kmain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/core/kmain.c b/src/kernel/core/kmain.c
index 2774e11..99ad0d7 100644
--- a/src/kernel/core/kmain.c
+++ b/src/kernel/core/kmain.c
@@ -250,7 +250,7 @@ fs_t *setup_iofs(multiboot_info_t *mbd) {
(char*)mods[i].mod_start,
len, FM_READ | FM_MMAP));
- if (strncmp(modname, "kernel.map", 10) == 0) {
+ if (strlen(modname) > 4 && strcmp(modname + strlen(modname) - 4, ".map") == 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);