mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-17 06:47:49 +00:00
Use correct section flags (causes a page fault)
This commit is contained in:
@@ -204,7 +204,7 @@ pub fn remap_the_kernel<A>(allocator: &mut A, boot_info: &BootInformation)
|
||||
section.addr,
|
||||
section.size);
|
||||
|
||||
let flags = WRITABLE; // TODO use real section flags
|
||||
let flags = EntryFlags::from_elf_section_flags(section);
|
||||
|
||||
let range = Range {
|
||||
start: section.addr as usize,
|
||||
|
||||
Reference in New Issue
Block a user