mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-04 13:21:45 +00:00
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc
* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: [POWERPC] Ensure FULL_REGS on exec
This commit is contained in:
commit
a7f3941a2c
1 changed files with 7 additions and 0 deletions
|
@ -605,6 +605,13 @@ void start_thread(struct pt_regs *regs, unsigned long start, unsigned long sp)
|
||||||
regs->ccr = 0;
|
regs->ccr = 0;
|
||||||
regs->gpr[1] = sp;
|
regs->gpr[1] = sp;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* We have just cleared all the nonvolatile GPRs, so make
|
||||||
|
* FULL_REGS(regs) return true. This is necessary to allow
|
||||||
|
* ptrace to examine the thread immediately after exec.
|
||||||
|
*/
|
||||||
|
regs->trap &= ~1UL;
|
||||||
|
|
||||||
#ifdef CONFIG_PPC32
|
#ifdef CONFIG_PPC32
|
||||||
regs->mq = 0;
|
regs->mq = 0;
|
||||||
regs->nip = start;
|
regs->nip = start;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue