]> git.ameliathe1st.gay Git - voyage-au-centre-des-fichiers.git/commitdiff
Removed assert that had become useless.
authorAmelia Coutard <eliottulio.coutard@gmail.com>
Wed, 1 Mar 2023 13:09:38 +0000 (14:09 +0100)
committerAmelia Coutard <eliottulio.coutard@gmail.com>
Wed, 1 Mar 2023 13:09:38 +0000 (14:09 +0100)
kernel/src/kernel.cpp

index 478783dc1fc595b8182077a7405bb948b487cd48..c5d8591c3a653c67626342b93bf6eec4891f4961 100644 (file)
@@ -209,7 +209,6 @@ extern "C" void kmain(unsigned long magic, os::phys_ptr<const multiboot2::info_s
                std::size_t nb_pages = (program_header.p_memsz + 0x1000) / 0x1000;
                for (std::size_t i = 0; i < nb_pages; i++) {
                        const auto indices = os::paging::calc_page_table_indices(program_header.p_vaddr + i * 0x1000);
-                       os::assert(indices.pml4e < 256, "Userspace program must be in the lower-half of virtual memory.");
                        if (PML4T.contents[indices.pml4e].P == 0) {
                                PML4T.contents[indices.pml4e] = {.P = 1, .R_W = 1, .U_S = 1, .PWT = 0, .PCD = 0, .base_address = 0, .NX = 0};
                                const auto PDPT_alloc = os::paging::page_allocator.allocate(1);