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

Commit 69515f8b authored by Edgar E. Iglesias's avatar Edgar E. Iglesias Committed by Michal Simek
Browse files

microblaze: Switch ELF_ARCH code to 189



Switch arch code to 189, the registered code in the upstream
version of binutils. Continue to accept the experimental 0xbaab.

Signed-off-by: default avatarEdgar E. Iglesias <edgar.iglesias@gmail.com>
Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent 0fb2a6f2
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -16,13 +16,15 @@
 * I've snaffled the value from the microblaze binutils source code
 * /binutils/microblaze/include/elf/microblaze.h
 */
#define EM_XILINX_MICROBLAZE	0xbaab
#define ELF_ARCH		EM_XILINX_MICROBLAZE
#define EM_MICROBLAZE		189
#define EM_MICROBLAZE_OLD	0xbaab
#define ELF_ARCH		EM_MICROBLAZE

/*
 * This is used to ensure we don't load something for the wrong architecture.
 */
#define elf_check_arch(x)	((x)->e_machine == EM_XILINX_MICROBLAZE)
#define elf_check_arch(x)	((x)->e_machine == EM_MICROBLAZE \
				 || (x)->e_machine == EM_MICROBLAZE_OLD)

/*
 * These are used to set parameters in the core dumps.
+1 −1
Original line number Diff line number Diff line
@@ -148,7 +148,7 @@ asmlinkage long do_syscall_trace_enter(struct pt_regs *regs)
		ret = -1L;

	if (unlikely(current->audit_context))
		audit_syscall_entry(EM_XILINX_MICROBLAZE, regs->r12,
		audit_syscall_entry(EM_MICROBLAZE, regs->r12,
				    regs->r5, regs->r6,
				    regs->r7, regs->r8);