From: Stephen Rothwell Date: Wed, 12 Oct 2005 13:23:44 +0000 (+1000) Subject: powerpc: make 64 bit binaries work X-Git-Tag: v2.6.15-rc1~59^2~178 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f17d0742f27b7a69b0e2dfb21190f06ea3a9087;p=platform%2Fkernel%2Flinux-3.10.git powerpc: make 64 bit binaries work Signed-off-by: Stephen Rothwell --- diff --git a/arch/powerpc/kernel/process.c b/arch/powerpc/kernel/process.c index f09908a..92bc75f 100644 --- a/arch/powerpc/kernel/process.c +++ b/arch/powerpc/kernel/process.c @@ -620,7 +620,7 @@ void start_thread(struct pt_regs *regs, unsigned long start, unsigned long sp) regs->nip = start; regs->msr = MSR_USER; #else - if (test_thread_flag(TIF_32BIT)) { + { unsigned long entry, toc, load_addr = regs->gpr[2]; /* start is a relocated pointer to the function descriptor for @@ -641,10 +641,6 @@ void start_thread(struct pt_regs *regs, unsigned long start, unsigned long sp) regs->nip = entry; regs->gpr[2] = toc; regs->msr = MSR_USER64; - } else { - regs->nip = start; - regs->gpr[2] = 0; - regs->msr = MSR_USER32; } #endif