diff --git a/arch/x86/kernel/apic.c b/arch/x86/kernel/apic.c index df811140..ef2f82a1 100644 --- a/arch/x86/kernel/apic.c +++ b/arch/x86/kernel/apic.c @@ -568,7 +568,7 @@ static int apic_probe(void) // searching MP signature in the reserved memory areas #ifdef CONFIG_MULTIBOOT - 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);