patch-2.1.97 linux/include/asm-sparc/a.out.h

Next file: linux/include/asm-sparc/asi.h
Previous file: linux/include/asm-ppc/xstat.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.96/linux/include/asm-sparc/a.out.h linux/include/asm-sparc/a.out.h
@@ -1,4 +1,4 @@
-/* $Id: a.out.h,v 1.11 1996/12/03 08:44:56 jj Exp $ */
+/* $Id: a.out.h,v 1.12 1998/02/05 14:20:00 jj Exp $ */
 #ifndef __SPARC_A_OUT_H__
 #define __SPARC_A_OUT_H__
 
@@ -89,10 +89,31 @@
 
 #ifdef __KERNEL__
 
+#include <linux/config.h>
+#include <asm/btfixup.h>
+
+#ifdef CONFIG_SUN4
+
+#define STACK_TOP	(0xefffe000UL)
+
+#else
+
 extern unsigned long	stack_top;
 
-#define STACK_TOP	(stack_top)
+#  ifndef MODULE
+
+    BTFIXUPDEF_SETHI_INIT(stack_top,0xeffff000)
+
+#    define STACK_TOP	((unsigned long)BTFIXUP_SETHI(stack_top))
+
+#  else /* MODULE */
+
+#    define STACK_TOP	(stack_top)
+
+#  endif /* MODULE */
+
+#endif /* !CONFIG_SUN4 */
 
-#endif
+#endif /* __KERNEL__ */
 
 #endif /* __SPARC_A_OUT_H__ */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov