projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7062018
)
powerpc: make 64 bit binaries work
author
Stephen Rothwell
<sfr@canb.auug.org.au>
Wed, 12 Oct 2005 13:23:44 +0000
(23:23 +1000)
committer
Stephen Rothwell
<sfr@canb.auug.org.au>
Wed, 12 Oct 2005 23:49:56 +0000
(09:49 +1000)
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
arch/powerpc/kernel/process.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/kernel/process.c
b/arch/powerpc/kernel/process.c
index f09908a0beea9204763a516b032ac6d42d79ee0d..92bc75f61ca68eba348a8bc122efd0db651021dd 100644
(file)
--- 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