]> err.no Git - linux-2.6/commitdiff
x86: Fix up silly i1586 boot message.
authorDave Jones <davej@redhat.com>
Wed, 28 May 2008 16:57:13 +0000 (12:57 -0400)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 28 May 2008 17:34:12 +0000 (10:34 -0700)
Trying to boot a 64-bit kernel on a 32bit Pentium 4 gets
you an amusing message along the lines of.
"you need an x86-64, but you only have an i1586"
due to the P4 being family F.  Munge it to be 686.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/boot/cpu.c

index 00e19edd852c60d8cc32a2b009a604938747dd77..92d6fd73dc7dff60681d6ab7dee1362fba783d70 100644 (file)
@@ -28,6 +28,8 @@ static char *cpu_name(int level)
        if (level == 64) {
                return "x86-64";
        } else {
+               if (level == 15)
+                       level = 6;
                sprintf(buf, "i%d86", level);
                return buf;
        }