Hexagon: break up user fn/arg register setting
Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
This commit is contained in:
parent
c05c3ec401
commit
0d3ab450a7
|
@ -113,7 +113,8 @@ int copy_thread(unsigned long clone_flags, unsigned long usp,
|
||||||
if (unlikely(p->flags & PF_KTHREAD)) {
|
if (unlikely(p->flags & PF_KTHREAD)) {
|
||||||
memset(childregs, 0, sizeof(struct pt_regs));
|
memset(childregs, 0, sizeof(struct pt_regs));
|
||||||
/* r24 <- fn, r25 <- arg */
|
/* r24 <- fn, r25 <- arg */
|
||||||
ss->r2524 = usp | ((u64)arg << 32);
|
ss->r24 = usp;
|
||||||
|
ss->r25 = arg;
|
||||||
pt_set_kmode(childregs);
|
pt_set_kmode(childregs);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue