public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* make AT_SYSINFO platform-independent
@ 2003-01-11  6:45 David Mosberger
  2003-01-11 11:07 ` Christoph Hellwig
  0 siblings, 1 reply; 14+ messages in thread
From: David Mosberger @ 2003-01-11  6:45 UTC (permalink / raw)
  To: torvalds; +Cc: linux-kernel

How about moving the AT_SYSINFO macro from asm-i386/elf.h to
linux/elf.h?  Several architectures can benefit from it (certainly
pa-risc and ia64) and since glibc also defines it in a
non-platformspecific fashion, there really is no point not doing the
same in the kernel.  I suppose it would be nice if we could renumber
it from 32 to 18, but that would require updating glibc, which is
probably too painful.

	--david

===== include/asm-i386/elf.h 1.5 vs edited =====
--- 1.5/include/asm-i386/elf.h	Thu Jan  2 07:22:48 2003
+++ edited/include/asm-i386/elf.h	Fri Jan 10 22:40:15 2003
@@ -96,12 +96,6 @@
 
 #define ELF_PLATFORM  (system_utsname.machine)
 
-/*
- * Architecture-neutral AT_ values in 0-17, leave some room
- * for more of them, start the x86-specific ones at 32.
- */
-#define AT_SYSINFO	32
-
 #ifdef __KERNEL__
 #define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX)
 
===== include/linux/elf.h 1.16 vs edited =====
--- 1.16/include/linux/elf.h	Thu Dec 26 14:07:53 2002
+++ edited/include/linux/elf.h	Fri Jan 10 22:40:45 2003
@@ -182,6 +182,7 @@
 #define AT_PLATFORM 15  /* string identifying CPU for optimizations */
 #define AT_HWCAP  16    /* arch dependent hints at CPU capabilities */
 #define AT_CLKTCK 17	/* frequency at which times() increments */
+#define AT_SYSINFO	32	/* pointer to kernel's sysinfo */
 
 typedef struct dynamic{
   Elf32_Sword d_tag;

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2003-01-11 23:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-11  6:45 make AT_SYSINFO platform-independent David Mosberger
2003-01-11 11:07 ` Christoph Hellwig
2003-01-11 18:43   ` Linus Torvalds
2003-01-11 18:52   ` Ulrich Drepper
2003-01-11 18:57     ` Christoph Hellwig
2003-01-11 19:06       ` Ulrich Drepper
2003-01-11 19:13         ` Christoph Hellwig
2003-01-11 19:24           ` Ulrich Drepper
2003-01-11 19:30             ` Christoph Hellwig
2003-01-11 19:29       ` Linus Torvalds
2003-01-11 19:36         ` Christoph Hellwig
2003-01-11 19:36         ` David Mosberger
2003-01-12  0:21       ` Alan Cox
2003-01-11 23:47         ` Jeff Garzik

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