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

Commit 922a70d3 authored by David Howells's avatar David Howells Committed by Linus Torvalds
Browse files

aout: move STACK_TOP[_MAX] to asm/processor.h



Move STACK_TOP[_MAX] out of asm/a.out.h and into asm/processor.h as they're
required whether or not A.OUT format is available.

Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3eb05676
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -98,11 +98,5 @@ struct exec
	set_personality (((BFPM->sh_bang || EX.ah.entry < 0x100000000L \
			   ? ADDR_LIMIT_32BIT : 0) | PER_OSF4))

#define STACK_TOP \
  (current->personality & ADDR_LIMIT_32BIT ? 0x80000000 : 0x00120000000UL)

#define STACK_TOP_MAX	0x00120000000UL

#endif

#endif /* __KERNEL__ */
#endif /* __A_OUT_GNU_H__ */
+5 −0
Original line number Diff line number Diff line
@@ -20,6 +20,11 @@
 */
#define TASK_SIZE (0x40000000000UL)

#define STACK_TOP \
  (current->personality & ADDR_LIMIT_32BIT ? 0x80000000 : 0x00120000000UL)

#define STACK_TOP_MAX	0x00120000000UL

/* This decides where the kernel will search for a free chunk of vm
 * space during mmap's.
 */
+0 −6
Original line number Diff line number Diff line
@@ -27,12 +27,6 @@ struct exec

#define M_ARM 103

#ifdef __KERNEL__
#define STACK_TOP	((current->personality == PER_LINUX_32BIT) ? \
			 TASK_SIZE : TASK_SIZE_26)
#define STACK_TOP_MAX	TASK_SIZE
#endif

#ifndef LIBRARY_START_TEXT
#define LIBRARY_START_TEXT	(0x00c00000)
#endif
+6 −0
Original line number Diff line number Diff line
@@ -22,6 +22,12 @@
#include <asm/ptrace.h>
#include <asm/types.h>

#ifdef __KERNEL__
#define STACK_TOP	((current->personality == PER_LINUX_32BIT) ? \
			 TASK_SIZE : TASK_SIZE_26)
#define STACK_TOP_MAX	TASK_SIZE
#endif

union debug_insn {
	u32	arm;
	u16	thumb;
+0 −7
Original line number Diff line number Diff line
@@ -17,11 +17,4 @@ struct exec
#define N_DRSIZE(a)	((a).a_drsize)
#define N_SYMSIZE(a)	((a).a_syms)

#ifdef __KERNEL__

#define STACK_TOP	TASK_SIZE
#define STACK_TOP_MAX	STACK_TOP

#endif

#endif /* __ASM_AVR32_A_OUT_H */
Loading