[S390] Randomize lower bits of stack address

Randomize the lower bits of the stack address like x86 and powerpc.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
Heiko Carstens
2011-01-12 09:55:28 +01:00
committed by Martin Schwidefsky
parent df1ca53cba
commit 9887a1fcdd
2 changed files with 10 additions and 1 deletions

View File

@@ -449,7 +449,7 @@ extern void (*_machine_restart)(char *command);
extern void (*_machine_halt)(void);
extern void (*_machine_power_off)(void);
#define arch_align_stack(x) (x)
extern unsigned long arch_align_stack(unsigned long sp);
static inline int tprot(unsigned long addr)
{