mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 00:21:59 +00:00
b111757c50
New arch macro STACK_TOP_MAX it gives the larges valid stack address for the architecture in question. It differs from STACK_TOP in that it will not distinguish between personalities but will always return the largest possible address. This is used to create the initial stack on execve, which we will move down to the proper location once the binfmt code has figured out where that is. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Ollie Wild <aaw@google.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
35 lines
765 B
C
35 lines
765 B
C
/*
|
|
* include/asm-xtensa/a.out.h
|
|
*
|
|
* Dummy a.out file. Xtensa does not support the a.out format, but the kernel
|
|
* seems to depend on it.
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
* for more details.
|
|
*
|
|
* Copyright (C) 2001 - 2005 Tensilica Inc.
|
|
*/
|
|
|
|
#ifndef _XTENSA_A_OUT_H
|
|
#define _XTENSA_A_OUT_H
|
|
|
|
/* Note: the kernel needs the a.out definitions, even if only ELF is used. */
|
|
|
|
#define STACK_TOP TASK_SIZE
|
|
#define STACK_TOP_MAX STACK_TOP
|
|
|
|
struct exec
|
|
{
|
|
unsigned long a_info;
|
|
unsigned a_text;
|
|
unsigned a_data;
|
|
unsigned a_bss;
|
|
unsigned a_syms;
|
|
unsigned a_entry;
|
|
unsigned a_trsize;
|
|
unsigned a_drsize;
|
|
};
|
|
|
|
#endif /* _XTENSA_A_OUT_H */
|