aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/kernel/process.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c
index 193c8c1bf132..047da1ae21fe 100644
--- a/arch/powerpc/kernel/process.c
+++ b/arch/powerpc/kernel/process.c
@@ -595,6 +595,10 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
595 */ 595 */
596void start_thread(struct pt_regs *regs, unsigned long start, unsigned long sp) 596void start_thread(struct pt_regs *regs, unsigned long start, unsigned long sp)
597{ 597{
598#ifdef CONFIG_PPC64
599 unsigned long load_addr = regs->gpr[2]; /* saved by ELF_PLAT_INIT */
600#endif
601
598 set_fs(USER_DS); 602 set_fs(USER_DS);
599 603
600 /* 604 /*
@@ -621,7 +625,7 @@ void start_thread(struct pt_regs *regs, unsigned long start, unsigned long sp)
621 regs->msr = MSR_USER; 625 regs->msr = MSR_USER;
622#else 626#else
623 if (!test_thread_flag(TIF_32BIT)) { 627 if (!test_thread_flag(TIF_32BIT)) {
624 unsigned long entry, toc, load_addr = regs->gpr[2]; 628 unsigned long entry, toc;
625 629
626 /* start is a relocated pointer to the function descriptor for 630 /* start is a relocated pointer to the function descriptor for
627 * the elf _start routine. The first entry in the function 631 * the elf _start routine. The first entry in the function