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

Commit 0b592682 authored by Martin Schwidefsky's avatar Martin Schwidefsky
Browse files

[PATCH] remove unused ibcs2/PER_SVR4 in SET_PERSONALITY



The SET_PERSONALITY macro is always called with a second argument of 0.
Remove the ibcs argument and the various tests to set the PER_SVR4
personality.

Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 04ab5918
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -144,9 +144,9 @@ extern int dump_elf_task_fp(elf_fpreg_t *dest, struct task_struct *task);
	: amask (AMASK_CIX) ? "ev6" : "ev67");	\
})

#define SET_PERSONALITY(EX, IBCS2)				\
#define SET_PERSONALITY(EX)					\
	set_personality(((EX).e_flags & EF_ALPHA_32BIT)		\
	   ? PER_LINUX_32BIT : (IBCS2) ? PER_SVR4 : PER_LINUX)
	   ? PER_LINUX_32BIT : PER_LINUX)

extern int alpha_l1i_cacheshape;
extern int alpha_l1d_cacheshape;
+1 −1
Original line number Diff line number Diff line
@@ -107,6 +107,6 @@ extern int arm_elf_read_implies_exec(const struct elf32_hdr *, int);
#define ELF_PLAT_INIT(_r, load_addr)	(_r)->ARM_r0 = 0

extern void elf_set_personality(const struct elf32_hdr *);
#define SET_PERSONALITY(ex, ibcs2)	elf_set_personality(&(ex))
#define SET_PERSONALITY(ex)	elf_set_personality(&(ex))

#endif
+1 −1
Original line number Diff line number Diff line
@@ -103,6 +103,6 @@ typedef struct user_fpu_struct elf_fpregset_t;

#define ELF_PLATFORM  (NULL)

#define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX_32BIT)
#define SET_PERSONALITY(ex) set_personality(PER_LINUX_32BIT)

#endif /* __ASM_AVR32_ELF_H */
+1 −1
Original line number Diff line number Diff line
@@ -122,6 +122,6 @@ do { \

#define ELF_PLATFORM  (NULL)

#define SET_PERSONALITY(ex, ibcs2) set_personality((ibcs2)?PER_SVR4:PER_LINUX)
#define SET_PERSONALITY(ex) set_personality(PER_LINUX)

#endif
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ typedef unsigned long elf_fpregset_t;

#define ELF_PLATFORM  (NULL)

#define SET_PERSONALITY(ex, ibcs2) set_personality(PER_LINUX)
#define SET_PERSONALITY(ex) set_personality(PER_LINUX)

#define R_H8_NONE       0
#define R_H8_DIR32      1
Loading