aboutsummaryrefslogtreecommitdiffstats
path: root/arch/s390/include/asm/elf.h
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2015-01-14 11:51:17 -0500
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2015-01-22 06:15:59 -0500
commit1f6b83e5e4d3aed46eac1d219322fba9c7341cd8 (patch)
treea7839cd769ec8637746d5e20a7eb7117373caaf0 /arch/s390/include/asm/elf.h
parentf8b2dcbd9e6d1479b9b5a9e9e78bbaf783bde819 (diff)
s390: avoid z13 cache aliasing
Avoid cache aliasing on z13 by aligning shared objects to multiples of 512K. The virtual addresses of a page from a shared file needs to have identical bits in the range 2^12 to 2^18. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/elf.h')
-rw-r--r--arch/s390/include/asm/elf.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/s390/include/asm/elf.h b/arch/s390/include/asm/elf.h
index f6e43d39e3d8..c9df40b5c0ac 100644
--- a/arch/s390/include/asm/elf.h
+++ b/arch/s390/include/asm/elf.h
@@ -163,8 +163,8 @@ extern unsigned int vdso_enabled;
163 the loader. We need to make sure that it is out of the way of the program 163 the loader. We need to make sure that it is out of the way of the program
164 that it will "exec", and that there is sufficient room for the brk. */ 164 that it will "exec", and that there is sufficient room for the brk. */
165 165
166extern unsigned long randomize_et_dyn(unsigned long base); 166extern unsigned long randomize_et_dyn(void);
167#define ELF_ET_DYN_BASE (randomize_et_dyn(STACK_TOP / 3 * 2)) 167#define ELF_ET_DYN_BASE randomize_et_dyn()
168 168
169/* This yields a mask that user programs can use to figure out what 169/* This yields a mask that user programs can use to figure out what
170 instruction set this CPU supports. */ 170 instruction set this CPU supports. */
@@ -209,7 +209,9 @@ do { \
209} while (0) 209} while (0)
210#endif /* CONFIG_COMPAT */ 210#endif /* CONFIG_COMPAT */
211 211
212#define STACK_RND_MASK 0x7ffUL 212extern unsigned long mmap_rnd_mask;
213
214#define STACK_RND_MASK (mmap_rnd_mask)
213 215
214#define ARCH_DLINFO \ 216#define ARCH_DLINFO \
215do { \ 217do { \