diff options
Diffstat (limited to 'Source/Kernel/Linker')
-rw-r--r-- | Source/Kernel/Linker/ElfBinary.class.cpp | 2 | ||||
-rw-r--r-- | Source/Kernel/Linker/MelonBinary.class.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/Kernel/Linker/ElfBinary.class.cpp b/Source/Kernel/Linker/ElfBinary.class.cpp index 450053f..27e5474 100644 --- a/Source/Kernel/Linker/ElfBinary.class.cpp +++ b/Source/Kernel/Linker/ElfBinary.class.cpp @@ -26,7 +26,7 @@ Binary* ElfBinary::load(File& file) { } //Load data for (SimpleList<phdr_t> *iter = b->m_phdr; iter != 0; iter = iter->next()) { - iter->v().data = (u8int*)Mem::kalloc(iter->v().h.p_filesz); + iter->v().data = (u8int*)Mem::alloc(iter->v().h.p_filesz); file.seek(iter->v().h.p_offset, SM_BEGINNING); file.read(iter->v().h.p_filesz, iter->v().data); } diff --git a/Source/Kernel/Linker/MelonBinary.class.cpp b/Source/Kernel/Linker/MelonBinary.class.cpp index d6074de..0737b71 100644 --- a/Source/Kernel/Linker/MelonBinary.class.cpp +++ b/Source/Kernel/Linker/MelonBinary.class.cpp @@ -7,7 +7,7 @@ Binary* MelonBinary::load(File& file) { MelonBinary* r = new MelonBinary; file.read<u32int>(&r->m_size); file.read<u32int>(&r->m_org); - r->m_data = (u8int*)Mem::kalloc(r->m_size); + r->m_data = (u8int*)Mem::alloc(r->m_size); file.read(r->m_size, r->m_data); return r; } else { |