Commit 0d3ab450 authored by Richard Kuo's avatar Richard Kuo

Hexagon: break up user fn/arg register setting

Signed-off-by: default avatarRichard Kuo <rkuo@codeaurora.org>
parent c05c3ec4
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment