Module Name: src Committed By: yamt Date: Thu Oct 21 11:28:34 UTC 2010
Modified Files: src/sys/arch/amd64/amd64: machdep.c Log Message: cpu_setmcontext: add a comment To generate a diff of this commit: cvs rdiff -u -r1.152 -r1.153 src/sys/arch/amd64/amd64/machdep.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/amd64/amd64/machdep.c diff -u src/sys/arch/amd64/amd64/machdep.c:1.152 src/sys/arch/amd64/amd64/machdep.c:1.153 --- src/sys/arch/amd64/amd64/machdep.c:1.152 Thu Oct 21 11:27:46 2010 +++ src/sys/arch/amd64/amd64/machdep.c Thu Oct 21 11:28:34 2010 @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.152 2010/10/21 11:27:46 yamt Exp $ */ +/* $NetBSD: machdep.c,v 1.153 2010/10/21 11:28:34 yamt Exp $ */ /*- * Copyright (c) 1996, 1997, 1998, 2000, 2006, 2007, 2008 @@ -107,7 +107,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.152 2010/10/21 11:27:46 yamt Exp $"); +__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.153 2010/10/21 11:28:34 yamt Exp $"); /* #define XENDEBUG_LOW */ @@ -1632,6 +1632,9 @@ if (error != 0) return error; /* + * save and restore some values we don't want to change. + * _FRAME_GREG(copy_to_tf) below overwrites them. + * * XXX maybe inline this. */ rflags = tf->tf_rflags;