Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7d624d1 authored by Dave Jones's avatar Dave Jones Committed by H. Peter Anvin
Browse files

x86: Fix up silly i1586 boot message.



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: default avatarDave Jones <davej@redhat.com>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent e490517a
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -28,6 +28,8 @@ static char *cpu_name(int level)
	if (level == 64) {
	if (level == 64) {
		return "x86-64";
		return "x86-64";
	} else {
	} else {
		if (level == 15)
			level = 6;
		sprintf(buf, "i%d86", level);
		sprintf(buf, "i%d86", level);
		return buf;
		return buf;
	}
	}