/* Get contents of register REGNO in task TASK.  */
static long get_reg(struct task_struct *task, int regno)
/* Get contents of register REGNO in task TASK.  */
static long get_reg(struct task_struct *task, int regno)
{
	struct user_context *user = task->thread.user;
	if (regno < 0 || regno >= PT__END)
		return 0;
	return ((unsigned long *) user)[regno];
}