elf.h (c1144d29f405ce1f4e6ede6482beb3d0d09750c6) elf.h (5b00ca0b8035e49ef7c466e959c5cb457a654351)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __ASMPARISC_ELF_H
3#define __ASMPARISC_ELF_H
4
5/*
6 * ELF register definitions..
7 */
8

--- 221 unchanged lines hidden (view full) ---

230#define ELF_CLASS ELFCLASS32
231#endif
232
233typedef unsigned long elf_greg_t;
234
235#define SET_PERSONALITY(ex) \
236({ \
237 set_personality((current->personality & ~PER_MASK) | PER_LINUX); \
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __ASMPARISC_ELF_H
3#define __ASMPARISC_ELF_H
4
5/*
6 * ELF register definitions..
7 */
8

--- 221 unchanged lines hidden (view full) ---

230#define ELF_CLASS ELFCLASS32
231#endif
232
233typedef unsigned long elf_greg_t;
234
235#define SET_PERSONALITY(ex) \
236({ \
237 set_personality((current->personality & ~PER_MASK) | PER_LINUX); \
238 clear_thread_flag(TIF_32BIT); \
238 current->thread.map_base = DEFAULT_MAP_BASE; \
239 current->thread.task_size = DEFAULT_TASK_SIZE; \
240 })
241
242#endif /* ! ELF_CLASS */
243
244#define COMPAT_SET_PERSONALITY(ex) \
245({ \
239 current->thread.map_base = DEFAULT_MAP_BASE; \
240 current->thread.task_size = DEFAULT_TASK_SIZE; \
241 })
242
243#endif /* ! ELF_CLASS */
244
245#define COMPAT_SET_PERSONALITY(ex) \
246({ \
246 set_thread_flag(TIF_32BIT); \
247 current->thread.map_base = DEFAULT_MAP_BASE32; \
248 current->thread.task_size = DEFAULT_TASK_SIZE32; \
247 if ((ex).e_ident[EI_CLASS] == ELFCLASS32) { \
248 set_thread_flag(TIF_32BIT); \
249 current->thread.map_base = DEFAULT_MAP_BASE32; \
250 current->thread.task_size = DEFAULT_TASK_SIZE32; \
251 } else clear_thread_flag(TIF_32BIT); \
249 })
250
251/*
252 * Fill in general registers in a core dump. This saves pretty
253 * much the same registers as hp-ux, although in a different order.
254 * Registers marked # below are not currently saved in pt_regs, so
255 * we use their current values here.
256 *

--- 106 unchanged lines hidden ---
252 })
253
254/*
255 * Fill in general registers in a core dump. This saves pretty
256 * much the same registers as hp-ux, although in a different order.
257 * Registers marked # below are not currently saved in pt_regs, so
258 * we use their current values here.
259 *

--- 106 unchanged lines hidden ---