VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Gabriel Krisman Bertazi <krisman@collabora.com> 2020-10-03 23:25:31 -0400 committer: Thomas Gleixner <tglx@linutronix.de> 2020-10-26 13:46:46 +0100 commit: bc3d7bf61a9eaecccc84dc2ecc2a9a3fa4f5ec47 parent: 2656af0d5abfa26d7f1e40f92e9953fe155b950a
Commit Summary:
elf: Expose ELF header in compat_start_thread()
Diffstat:
1 file changed, 6 insertions, 2 deletions
diff --git a/fs/compat_binfmt_elf.c b/fs/compat_binfmt_elf.c
index 2d24c765cbd7..12b991368f0a 100644
--- a/fs/compat_binfmt_elf.c
+++ b/fs/compat_binfmt_elf.c
@@ -106,8 +106,13 @@
 #endif
 
 #ifdef	compat_start_thread
-#undef	start_thread
-#define	start_thread		compat_start_thread
+#define COMPAT_START_THREAD(ex, regs, new_ip, new_sp)	\
+	compat_start_thread(regs, new_ip, new_sp)
+#endif
+
+#ifdef	COMPAT_START_THREAD
+#undef	START_THREAD
+#define START_THREAD		COMPAT_START_THREAD
 #endif
 
 #ifdef	compat_arch_setup_additional_pages