]> git.ameliathe1st.gay Git - voyage-au-centre-des-fichiers.git/commitdiff
Maybe fixed a bug. Avoided a potential one, anyways
authorAmelia Coutard <eliottulio.coutard@gmail.com>
Sun, 8 May 2022 18:38:53 +0000 (20:38 +0200)
committerAmelia Coutard <eliottulio.coutard@gmail.com>
Sun, 8 May 2022 18:38:53 +0000 (20:38 +0200)
src/kernel.cpp

index ef4d26f32b598ccab643ac6a57d069b1dab20fb6..4c766cd2ce8d3f2d0fb4f6ca2c3ca22be038b311 100644 (file)
@@ -89,7 +89,7 @@ extern "C" void kmain(unsigned long magic, os::phys_ptr<const multiboot2::info_s
                                        const os::phys_ptr<os::paging::page> 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) {