1 /* $NetBSD: sys_machdep.c,v 1.1 2014/02/24 07:23:43 skrll Exp $ */ 2 3 /* $OpenBSD: sys_machdep.c,v 1.1 1998/12/29 18:06:48 mickey Exp $ */ 4 5 6 #include <sys/cdefs.h> 7 __KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.1 2014/02/24 07:23:43 skrll Exp $"); 8 9 #include <sys/param.h> 10 #include <sys/systm.h> 11 12 #include <sys/mount.h> 13 #include <sys/syscallargs.h> 14 15 int sys_sysarch(struct lwp * l,const struct sys_sysarch_args * uap,register_t * retval)16sys_sysarch(struct lwp *l, const struct sys_sysarch_args *uap, register_t *retval) 17 { 18 /* { 19 syscallarg(int) op; 20 syscallarg(char *) parms; 21 } */ 22 int error = 0; 23 24 switch (SCARG(uap, op)) { 25 default: 26 error = EINVAL; 27 break; 28 } 29 return (error); 30 } 31