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 retrieving revision 1.9 retrieving revision 1.10 diff -u -p -r1.9 -r1.10 --- src/sys/arch/i386/i386/locore.S 2003/05/13 08:26:32 1.9 +++ src/sys/arch/i386/i386/locore.S 2003/05/13 09:35:16 1.10 @@ -1,4 +1,4 @@ -/* $NetBSD: locore.S,v 1.9 2003/05/13 08:26:32 fvdl Exp $ */ +/* $NetBSD: locore.S,v 1.10 2003/05/13 09:35:16 fvdl Exp $ */ /*- * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc. @@ -1853,7 +1853,7 @@ switch_resume: SET_CURLWP(%edi,%ecx) /* Skip context switch if same lwp. */ - movl $1, %ebx + xorl %ebx,%ebx cmpl %edi,%esi je switch_return @@ -1961,7 +1961,7 @@ switch_restored: je 1f movl %eax,TF_EIP(%ebx) 1: - xor %ebx,%ebx + movl $1,%ebx switch_return: #if defined(MULTIPROCESSOR) || defined(LOCKDEBUG)