diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-10-12 23:23:44 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2005-10-13 09:49:56 +1000 |
commit | 0f17d0742f27b7a69b0e2dfb21190f06ea3a9087 (patch) | |
tree | 5194d14f40c01465e0d7ef7955e38192be668725 /arch/powerpc/kernel/process.c | |
parent | 7062018687da3d5d4966f58d6f0a58528b1e331b (diff) | |
download | op-kernel-dev-0f17d0742f27b7a69b0e2dfb21190f06ea3a9087.zip op-kernel-dev-0f17d0742f27b7a69b0e2dfb21190f06ea3a9087.tar.gz |
powerpc: make 64 bit binaries work
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Diffstat (limited to 'arch/powerpc/kernel/process.c')
-rw-r--r-- | arch/powerpc/kernel/process.c | 6 |
1 files changed, 1 insertions, 5 deletions
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 |