Hexagon: break up user fn/arg register setting

Signed-off-by: Richard Kuo <rkuo@codeaurora.org>
This commit is contained in:
Richard Kuo 2012-10-23 18:26:20 -05:00
parent c05c3ec401
commit 0d3ab450a7
1 changed files with 2 additions and 1 deletions

View File

@ -113,7 +113,8 @@ int copy_thread(unsigned long clone_flags, unsigned long usp,
if (unlikely(p->flags & PF_KTHREAD)) {
memset(childregs, 0, sizeof(struct pt_regs));
/* r24 <- fn, r25 <- arg */
ss->r2524 = usp | ((u64)arg << 32);
ss->r24 = usp;
ss->r25 = arg;
pt_set_kmode(childregs);
return 0;
}