diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-28 23:26:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1995-10-28 23:26:11 +0000 |
commit | f55c9daa8c4ffa80b8056cd9ba289337eb43dbdc (patch) | |
tree | 97cbfa1e087a4f2d7a60be29d078ccbdedf925ab | |
parent | 7e91f5664416804f1afdb336e41fd43a2c18035e (diff) |
fix sys_sysarch
-rw-r--r-- | sys/arch/pica/pica/sys_machdep.c | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/sys/arch/pica/pica/sys_machdep.c b/sys/arch/pica/pica/sys_machdep.c index fabbe4c4815..cc9986ac2ca 100644 --- a/sys/arch/pica/pica/sys_machdep.c +++ b/sys/arch/pica/pica/sys_machdep.c @@ -50,6 +50,9 @@ #include <sys/buf.h> #include <sys/trace.h> +#include <sys/mount.h> +#include <sys/syscallargs.h> + #ifdef TRACE int nvualarm; @@ -106,14 +109,21 @@ vdoualarm(arg) } #endif -int -sysarch(p, uap, retval) +sys_sysarch(p, v, retval) struct proc *p; - struct sysarch_args /* { - syscallarg(int) op; - syscallarg(char *) parms; - } */ *uap; + void *v; register_t *retval; { - return ENOSYS; + struct sys_sysarch_args /* { + syscallarg(int) op; + syscallarg(char *) parms; + } */ *uap = v; + int error = 0; + + switch(SCARG(uap, op)) { + default: + error = EINVAL; + break; + } + return(error); } |