x86: Panic if there is no x2APIC
authorBarret Rhoden <brho@cs.berkeley.edu>
Mon, 14 Nov 2016 20:42:46 +0000 (15:42 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Wed, 7 Dec 2016 22:46:48 +0000 (14:46 -0800)
Most newer machines (Nehalem or later) should have one of these.  If not,
we'll panic later on when we try to turn it on.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/arch/x86/cpuinfo.c

index 0bbed99..c97d175 100644 (file)
@@ -91,7 +91,7 @@ void print_cpuinfo(void)
        if (ecx & 0x00200000)
                cprintf("x2APIC Detected\n");
        else
-               cprintf("x2APIC Not Detected\n");
+               panic("x2APIC Not Detected\n");
        /* Not sure how to detect AMD HW virt yet. */
        if ((ecx & 0x00000060) && cpu_has_feat(CPU_FEAT_X86_VENDOR_INTEL)) {
                msr_val = read_msr(IA32_FEATURE_CONTROL);