[BACK]Return to sys_syscall.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/sys_syscall.c between version 1.1 and

version 1.1, 2007/11/09 14:50:51 version, 2008/01/02 21:56:15
Line 33 
Line 33 
  */   */
 #include <sys/cdefs.h>  #include <sys/cdefs.h>
 __RCSID("$NetBSD$");  __KERNEL_RCSID(0, "$NetBSD$");
 #include <sys/syscall_stats.h>  #include <sys/syscall_stats.h>
Line 47  __RCSID("$NetBSD$");
Line 47  __RCSID("$NetBSD$");
 #define CONCAT(a,b) __CONCAT(a,b)  #define CONCAT(a,b) __CONCAT(a,b)
 int  int
 SYS_SYSCALL(struct lwp *l, void *v, register_t *rval)  SYS_SYSCALL(struct lwp *l, const struct CONCAT(SYS_SYSCALL, _args) *uap,
       register_t *rval)
 {  {
         struct CONCAT(SYS_SYSCALL, _args) /* {          /* {
                 syscallarg(int) code;                  syscallarg(int) code;
                 syscallarg(register_t) args[SYS_MAXSYSARGS];                  syscallarg(register_t) args[SYS_MAXSYSARGS];
         } */ *uap = v;          } */
         const struct sysent *callp;          const struct sysent *callp;
         struct proc *p = l->l_proc;          struct proc *p = l->l_proc;
         int code;          int code;
Line 62  SYS_SYSCALL(struct lwp *l, void *v, regi
Line 63  SYS_SYSCALL(struct lwp *l, void *v, regi
         int i, narg;          int i, narg;
         #define TRACE_ARGS args64          #define TRACE_ARGS args64
 #else  #else
         #define TRACE_ARGS &uap->args          #define TRACE_ARGS &SCARG(uap, args[0])
 #endif  #endif
         callp = p->p_emul->e_sysent;          callp = p->p_emul->e_sysent;
Line 81  SYS_SYSCALL(struct lwp *l, void *v, regi
Line 82  SYS_SYSCALL(struct lwp *l, void *v, regi
         narg = callp->sy_argsize >> 2;          narg = callp->sy_argsize >> 2;
         for (i = 0; i < narg; i++)          for (i = 0; i < narg; i++)
                 args64[i] = SCARG(uap, args[i]);                  args64[i] = SCARG(uap, args[i]);
         /* XXX systrace will not modify the correct arguments! */  
 #endif  #endif
         error = trace_enter(l, code, code, NULL, TRACE_ARGS);          error = trace_enter(l, code, code, NULL, TRACE_ARGS);

Removed from v.1.1  
changed lines
  Added in v.

CVSweb <webmaster@jp.NetBSD.org>