Skip to content

Commit

Permalink
x86: Fix up silly i1586 boot message.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dave Jones authored and H. Peter Anvin committed May 28, 2008
1 parent e490517 commit c7d624d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/boot/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit c7d624d

Please sign in to comment.