]> git.ameliathe1st.gay Git - voyage-au-centre-des-fichiers.git/commitdiff
Removed two useless lines. Not important
authorAmelia Coutard <eliottulio.coutard@gmail.com>
Wed, 6 Dec 2023 08:44:14 +0000 (09:44 +0100)
committerAmelia Coutard <eliottulio.coutard@gmail.com>
Wed, 6 Dec 2023 08:44:14 +0000 (09:44 +0100)
kernel/src/boot.S
kernel/src/elf64.cpp

index 7bfad4ea74cb6c6903d107fd480ab4ee8827ba29..11a650a3b78887bb3cdf211e153b8864906f1903 100644 (file)
@@ -43,7 +43,6 @@ multiboot_header_start:
 multiboot_header_end:
 
 .section .data
-.align 0x1000
 GDT:
 .set GDT.NULL, . - GDT
        .quad 0
index cf586ac97a3e4e644df013d62b4ad6bb64b4fd16..88fbf299e5624d62c5b581ed2d29ff1dab13d746 100644 (file)
@@ -34,7 +34,6 @@ void os::elf::load_elf(os::process& result, std::byte* start, std::size_t length
        std::byte* const stack = (std::byte*)0x0000'8000'0000'0000 - stack_size;
 
        result.PML4T = phys_ptr<paging::PML4T>(os::paging::page_allocator.allocate(1).ptr.get_phys_addr());
-       memset(&*result.PML4T, 0, 0x1000);
        result.rip = std::uint64_t(elf_header.entry);
        result.rsp = std::uint64_t(stack + stack_size);
        result.rax = 0;