From adc401206d5c0774135ddebf78ee5803d002e9aa Mon Sep 17 00:00:00 2001 From: travis-update-bot Date: Wed, 24 Feb 2016 16:25:13 +0000 Subject: [PATCH] Update blog to c145f9f1d11ce0e14d8e2aff26bf930782c0c741 --- _posts/2016-01-01-remap-the-kernel.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/_posts/2016-01-01-remap-the-kernel.md b/_posts/2016-01-01-remap-the-kernel.md index 9294d68b..0d94082c 100644 --- a/_posts/2016-01-01-remap-the-kernel.md +++ b/_posts/2016-01-01-remap-the-kernel.md @@ -552,10 +552,9 @@ Let's resolve the above `TODO` by identity mapping the sections: ```rust for section in elf_sections_tag.sections() { - use multiboot2::ELF_SECTION_ALLOCATED; use self::entry::WRITABLE; - if !section.flags().contains(ELF_SECTION_ALLOCATED) { + if !section.is_allocated() { // section is not loaded to memory continue; } @@ -895,7 +894,7 @@ pub fn remap_the_kernel(allocator: &mut A, boot_info: &BootInformation) ... for section in elf_sections_tag.sections() { ... - if !section.flags().contains(ELF_SECTION_ALLOCATED) { + if !section.is_allocated() { // section is not loaded to memory continue; }