Module Name: src
Committed By: rmind
Date: Sat Mar 28 21:21:29 UTC 2009
Modified Files:
src/sys/arch/amd64/amd64: core_machdep.c
Log Message:
cpu_coredump: pass UIO_SYSSPACE to coredump_write(), not UIO_USERSPACE.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/arch/amd64/amd64/core_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/core_machdep.c
diff -u src/sys/arch/amd64/amd64/core_machdep.c:1.2 src/sys/arch/amd64/amd64/core_machdep.c:1.3
--- src/sys/arch/amd64/amd64/core_machdep.c:1.2 Thu Dec 18 11:45:40 2008
+++ src/sys/arch/amd64/amd64/core_machdep.c Sat Mar 28 21:21:29 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: core_machdep.c,v 1.2 2008/12/18 11:45:40 cegger Exp $ */
+/* $NetBSD: core_machdep.c,v 1.3 2009/03/28 21:21:29 rmind Exp $ */
/*-
* Copyright (c) 1982, 1986 The Regents of the University of California.
@@ -80,7 +80,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: core_machdep.c,v 1.2 2008/12/18 11:45:40 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: core_machdep.c,v 1.3 2009/03/28 21:21:29 rmind Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -98,11 +98,11 @@
#include <machine/gdt.h>
#include <machine/reg.h>
#include <machine/specialreg.h>
-#include <machine/fpu.h>
/*
* Dump the machine specific segment at the start of a core dump.
- */
+ */
+
struct md_core {
struct reg intreg;
struct fpreg freg;
@@ -143,6 +143,6 @@
if (error)
return error;
- return coredump_write(iocookie, UIO_USERSPACE, &md_core,
- sizeof(md_core));
+ return coredump_write(iocookie, UIO_SYSSPACE,
+ &md_core, sizeof(md_core));
}