Example #1
0
int mips_sys_r5900(int cmd, int arg1, int arg2)
{
	switch (cmd) {
#ifdef CONFIG_CPU_R5900_CONTEXT
	case SYS_R5900_PTRACE_POKEU:
	case SYS_R5900_PTRACE_PEEKU:
		return sys_r5900_ptrace((long)cmd, 
			(long)arg1, 
			(struct sys_r5900_ptrace *)arg2);
		break;
#endif
	}
	return -EINVAL;
}
Example #2
0
int mips_sys_r5900(int cmd, int arg1, int arg2 )
{
	switch (cmd) {
	  case SYS_R5900_GET_CTRS:
	  case SYS_R5900_SET_CTRS:
	  case SYS_R5900_GET_CTR:
	  case SYS_R5900_SET_CTR:
	  case SYS_R5900_GET_CCR:
	  case SYS_R5900_SET_CCR:
		return mips_r5900_perf_reg( cmd, arg1, arg2 );
		break;
#ifdef CONFIG_CONTEXT_R5900
	  case SYS_R5900_PTRACE_POKEU:
	  case SYS_R5900_PTRACE_PEEKU:
		return sys_r5900_ptrace((long)cmd, 
			(long)arg1, 
			(struct sys_r5900_ptrace *)arg2);
		break;
#endif
	}
	return -EINVAL;
}