From: Amelia Coutard Date: Sun, 8 May 2022 18:38:53 +0000 (+0200) Subject: Maybe fixed a bug. Avoided a potential one, anyways X-Git-Url: https://git.ameliathe1st.gay/?a=commitdiff_plain;h=16bc654bec4a505aee70e0b7f9ecd6f512c3e426;p=voyage-au-centre-des-fichiers.git Maybe fixed a bug. Avoided a potential one, anyways --- diff --git a/src/kernel.cpp b/src/kernel.cpp index ef4d26f..4c766cd 100644 --- a/src/kernel.cpp +++ b/src/kernel.cpp @@ -89,7 +89,7 @@ extern "C" void kmain(unsigned long magic, os::phys_ptr e{multiboot2::memory_map_base_addr(it, i) + multiboot2::memory_map_length(it, i) / 0x1000 * 0x1000}; if (s == nullptr) { } - if (s != e) { + if (s < e) { remove_some_mem( s, e, kernel_start, kernel_end, [&page_allocator, info_start, info_end] (auto s, auto e) {