VisionFive2 Linux kernel

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

More than 9999 Commits   33 Branches   57 Tags
author: Borislav Petkov <bp@suse.de> 2020-04-22 18:11:30 +0200 committer: Borislav Petkov <bp@suse.de> 2020-05-15 11:48:01 +0200 commit: a9a3ed1eff3601b63aea4fb462d8b3b92c7c1e7e parent: 2ef96a5bb12be62ef75b5828c0aab838ebb29cb8
Commit Summary:
x86: Fix early boot crash on gcc-10, third try
Diffstat:
1 file changed, 1 insertion, 0 deletions
diff --git a/init/main.c b/init/main.c
index 1a5da2c2660c..ad3812b5ae65 100644
--- a/init/main.c
+++ b/init/main.c
@@ -1036,6 +1036,8 @@ asmlinkage __visible void __init start_kernel(void)
 
 	/* Do the rest non-__init'ed, we're now alive */
 	arch_call_rest_init();
+
+	prevent_tail_call_optimization();
 }
 
 /* Call all constructor functions linked into the kernel. */