Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/arch/i386/i386/locore.S,v rcsdiff: /ftp/cvs/cvsroot/src/sys/arch/i386/i386/locore.S,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.66 retrieving revision 1.67 diff -u -p -r1.66 -r1.67 --- src/sys/arch/i386/i386/locore.S 2008/01/23 19:46:44 1.66 +++ src/sys/arch/i386/i386/locore.S 2008/03/11 02:24:43 1.67 @@ -1,4 +1,4 @@ -/* $NetBSD: locore.S,v 1.66 2008/01/23 19:46:44 bouyer Exp $ */ +/* $NetBSD: locore.S,v 1.67 2008/03/11 02:24:43 ad Exp $ */ /* * Copyright-o-rama! @@ -141,7 +141,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.66 2008/01/23 19:46:44 bouyer Exp $"); +__KERNEL_RCSID(0, "$NetBSD: locore.S,v 1.67 2008/03/11 02:24:43 ad Exp $"); #include "opt_compat_oldboot.h" #include "opt_ddb.h" @@ -1090,6 +1090,7 @@ syscall1: 1: #endif /* DIAGNOSTIC */ movl CPUVAR(CURLWP),%edx + incl CPUVAR(NSYSCALL) # count it atomically movl %esp,L_MD_REGS(%edx) # save pointer to frame movl L_PROC(%edx),%edx pushl %esp