mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 2.2.18pre Pentium IV bug fix
@ 2000-11-11 16:50 Mikael Pettersson
  0 siblings, 0 replies; only message in thread
From: Mikael Pettersson @ 2000-11-11 16:50 UTC (permalink / raw)
  To: alan; +Cc: linux-kernel

Alan,

2.2.18pre's include/asm-i386/elf.h is currently broken for the
Pentium IV (out of bounds array indexing error).
Since ELF_PLATFORM is identical to system_utsname.machine, the
patch below simply tosses ELF_PLATFORM's broken name generation
code and uses system_utsname.machine instead.
There is no behavioural change for P6 and lesser CPUs.

/Mikael


--- linux-2.2.18pre21/include/asm-i386/elf.h.~1~	Tue Aug 10 19:00:00 1999
+++ linux-2.2.18pre21/include/asm-i386/elf.h	Fri Nov 10 14:57:39 2000
@@ -7,6 +7,7 @@
 
 #include <asm/ptrace.h>
 #include <asm/user.h>
+#include <linux/utsname.h>
 
 typedef unsigned long elf_greg_t;
 
@@ -93,7 +94,7 @@
    For the moment, we have only optimizations for the Intel generations,
    but that could change... */
 
-#define ELF_PLATFORM  ("i386\0i486\0i586\0i686"+((boot_cpu_data.x86-3)*5))
+#define ELF_PLATFORM (system_utsname.machine)
 
 #ifdef __KERNEL__
 #define SET_PERSONALITY(ex, ibcs2) \
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-11-11 16:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-11 16:50 2.2.18pre Pentium IV bug fix Mikael Pettersson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®