diff --git a/arch/x86/mm/page.c b/arch/x86/mm/page.c index 3853ca06..62944017 100644 --- a/arch/x86/mm/page.c +++ b/arch/x86/mm/page.c @@ -364,7 +364,7 @@ int arch_paging_init(void) /* * Map reserved memory regions into the kernel space */ - if (mb_info && (mb_info->flags & (1 << 6))) { + if (mb_info && (mb_info->flags & MULTIBOOT_INFO_MEM_MAP)) { multiboot_memory_map_t* mmap = (multiboot_memory_map_t*) mb_info->mmap_addr; multiboot_memory_map_t* mmap_end = (void*) ((size_t) mb_info->mmap_addr + mb_info->mmap_length); @@ -383,7 +383,7 @@ int arch_paging_init(void) * Modules like the init ram disk are already loaded. * Therefore, we map these moduels into the kernel space. */ - if (mb_info && (mb_info->flags & (1 << 3))) { + if (mb_info && (mb_info->flags & MULTIBOOT_INFO_MODS)) { multiboot_module_t* mmodule = (multiboot_module_t*) mb_info->mods_addr; for(i=0; imods_count; i++, mmodule++) {