Use correct section flags (causes a page fault)

This commit is contained in:
Philipp Oppermann
2015-12-31 15:32:30 +01:00
parent b64f980c34
commit 76d1c41e96
2 changed files with 23 additions and 1 deletions

View File

@@ -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,