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