Browse Source

powerpc: make 64 bit binaries work

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Stephen Rothwell 19 years ago
parent
commit
0f17d0742f
1 changed files with 1 additions and 5 deletions
  1. 1 5
      arch/powerpc/kernel/process.c

+ 1 - 5
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->nip = start;
 	regs->msr = MSR_USER;
 	regs->msr = MSR_USER;
 #else
 #else
-	if (test_thread_flag(TIF_32BIT)) {
+	{
 		unsigned long entry, toc, load_addr = regs->gpr[2];
 		unsigned long entry, toc, load_addr = regs->gpr[2];
 
 
 		/* start is a relocated pointer to the function descriptor for
 		/* 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->nip = entry;
 		regs->gpr[2] = toc;
 		regs->gpr[2] = toc;
 		regs->msr = MSR_USER64;
 		regs->msr = MSR_USER64;
-	} else {
-		regs->nip = start;
-		regs->gpr[2] = 0;
-		regs->msr = MSR_USER32;
 	}
 	}
 #endif
 #endif