Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 11621
b: refs/heads/master
c: 90eac72
h: refs/heads/master
i:
  11619: 9deed36
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Oct 21, 2005
1 parent b504070 commit 8363c4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6cb7bfebb145af5ea1d052512a2ae7ff07a47202
refs/heads/master: 90eac727c6d7afbe707ce408edf97c33385fa08c
6 changes: 5 additions & 1 deletion trunk/arch/powerpc/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,10 @@ int copy_thread(int nr, unsigned long clone_flags, unsigned long usp,
*/
void start_thread(struct pt_regs *regs, unsigned long start, unsigned long sp)
{
#ifdef CONFIG_PPC64
unsigned long load_addr = regs->gpr[2]; /* saved by ELF_PLAT_INIT */
#endif

set_fs(USER_DS);

/*
Expand All @@ -621,7 +625,7 @@ void start_thread(struct pt_regs *regs, unsigned long start, unsigned long sp)
regs->msr = MSR_USER;
#else
if (!test_thread_flag(TIF_32BIT)) {
unsigned long entry, toc, load_addr = regs->gpr[2];
unsigned long entry, toc;

/* start is a relocated pointer to the function descriptor for
* the elf _start routine. The first entry in the function
Expand Down

0 comments on commit 8363c4e

Please sign in to comment.