/* Write contents of register REGNO in task TASK.  */
int put_reg(struct task_struct *task, unsigned int regno, unsigned long data)
/* Write contents of register REGNO in task TASK.  */
int put_reg(struct task_struct *task, unsigned int regno, unsigned long data)
{
	if (regno == PT_USP)
		task->thread.usp = data;
	else if (regno < PT_MAX)
		((unsigned long *)task_pt_regs(task))[regno] = data;
	else
		return -1;
	return 0;
}