/* Get address of register REGNO in task TASK.  */
static unsigned long* get_reg_addr(struct task_struct *task, unsigned long regno)
/* Get address of register REGNO in task TASK.  */
static unsigned long* get_reg_addr(struct task_struct *task, unsigned long regno)
{
	unsigned long *addr;
	if (regno == 30) {
		addr = &task_thread_info(task)->pcb.usp;
	} else if (regno == 65) {
		addr = &task_thread_info(task)->pcb.unique;
	} else if (regno == 31 || regno > 65) {
		zero = 0;
		addr = &zero;
	} else {
		addr = task_stack_page(task) + regoff[regno];
	}
	return addr;
}