struct us_priv *priv = (struct us_priv *)ri->data;
memcpy(ri->data, regs, sizeof(*regs));
- priv->arg0 = swap_get_arg(regs, 0);
- priv->arg1 = swap_get_arg(regs, 1);
+ priv->arg0 = swap_get_uarg(regs, 0);
+ priv->arg1 = swap_get_uarg(regs, 1);
priv->raddr = swap_get_ret_addr(regs);
}
struct us_priv *priv = (struct us_priv *)ri->data;
memcpy(regs, ri->data, sizeof(*regs));
- swap_set_arg(regs, 0, priv->arg0);
- swap_set_arg(regs, 1, priv->arg1);
+ swap_put_uarg(regs, 0, priv->arg0);
+ swap_put_uarg(regs, 1, priv->arg1);
swap_set_ret_addr(regs, priv->raddr);
#ifndef CONFIG_ARM
/* need to do it only on x86 */
(char *)("NULL"),
(int)lpd_get_state(hd),
prefix, (unsigned long)ri->rp->up.addr,
- regs->EREG(ip), swap_get_arg(regs, 0), swap_get_arg(regs, 1),
+ regs->EREG(ip), swap_get_uarg(regs, 0), swap_get_uarg(regs, 1),
swap_get_ret_addr(regs));
#endif /* CONFIG_ARM */
}
path = lpd_get_path(pd, hd);
/* set dlopen args: filename, flags */
- swap_set_arg(regs, 0, (unsigned long)path/*swap_get_stack_ptr(regs)*/);
- swap_set_arg(regs, 1, 2 /* RTLD_NOW */);
+ swap_put_uarg(regs, 0, (unsigned long)path);
+ swap_put_uarg(regs, 1, 2 /* RTLD_NOW */);
/* do the jump to dlopen */
__prepare_ujump(ri, regs, vaddr);