Make cpu_coredump dependent on COREDUMP
This commit is contained in:
parent
34827b737d
commit
d2fa9e5329
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vm_machdep.c,v 1.15 2006/07/22 06:58:17 tsutsui Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.16 2006/08/31 16:49:21 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
|
@ -77,7 +77,9 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.15 2006/07/22 06:58:17 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.16 2006/08/31 16:49:21 matt Exp $");
|
||||
|
||||
#include "opt_coredump.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -199,6 +201,7 @@ cpu_exit(struct lwp *l)
|
|||
/* NOTREACHED */
|
||||
}
|
||||
|
||||
#ifdef COREDUMP
|
||||
/*
|
||||
* Dump the machine specific header information at the start of a core dump.
|
||||
*/
|
||||
|
@ -250,6 +253,7 @@ cpu_coredump(struct lwp *l, void *iocookie, struct core *chdr)
|
|||
return coredump_write(iocookie, UIO_SYSSPACE, &md_core,
|
||||
sizeof(md_core));
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Map a user I/O request into kernel virtual address space.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vm_machdep.c,v 1.111 2006/08/26 20:18:36 matt Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.112 2006/08/31 16:49:21 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -77,9 +77,10 @@
|
|||
*/
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_coredump.h"
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.111 2006/08/26 20:18:36 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.112 2006/08/31 16:49:21 matt Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -250,6 +251,7 @@ cpu_exit(struct lwp *l)
|
|||
/* NOTREACHED */
|
||||
}
|
||||
|
||||
#ifdef COREDUMP
|
||||
/*
|
||||
* Dump the machine specific segment at the start of a core dump.
|
||||
*/
|
||||
|
@ -289,6 +291,7 @@ cpu_coredump(struct lwp *l, void *iocookie, struct core *chdr)
|
|||
return coredump_write(iocookie, UIO_SYSSPACE, &cpustate,
|
||||
chdr->c_cpusize);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Map a user I/O request into kernel virtual address space.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vm_machdep.c,v 1.66 2006/08/05 21:26:49 sanjayl Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.67 2006/08/31 16:49:21 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
|
||||
|
@ -32,11 +32,12 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.66 2006/08/05 21:26:49 sanjayl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.67 2006/08/31 16:49:21 matt Exp $");
|
||||
|
||||
#include "opt_altivec.h"
|
||||
#include "opt_multiprocessor.h"
|
||||
#include "opt_ppcarch.h"
|
||||
#include "opt_coredump.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/core.h>
|
||||
|
@ -234,6 +235,7 @@ cpu_exit(struct lwp *l)
|
|||
switch_exit(l, lwp_exit2);
|
||||
}
|
||||
|
||||
#ifdef COREDUMP
|
||||
/*
|
||||
* Write the machine-dependent part of a core dump.
|
||||
*/
|
||||
|
@ -285,6 +287,7 @@ cpu_coredump(struct lwp *l, void *iocookie, struct core *chdr)
|
|||
return coredump_write(iocookie, UIO_SYSSPACE, &md_core,
|
||||
sizeof(md_core));
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef PPC_IBM4XX
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vm_machdep.c,v 1.52 2006/05/10 06:24:03 skrll Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.53 2006/08/31 16:49:21 matt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc. All rights reserved.
|
||||
|
@ -81,9 +81,10 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.52 2006/05/10 06:24:03 skrll Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.53 2006/08/31 16:49:21 matt Exp $");
|
||||
|
||||
#include "opt_kstack_debug.h"
|
||||
#include "opt_coredump.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -311,6 +312,7 @@ cpu_lwp_free(struct lwp *l, int proc)
|
|||
/* Nothing to do */
|
||||
}
|
||||
|
||||
#ifdef COREDUMP
|
||||
/*
|
||||
* Dump the machine specific segment at the start of a core dump.
|
||||
*/
|
||||
|
@ -351,6 +353,7 @@ cpu_coredump(struct lwp *l, void *iocookie, struct core *chdr)
|
|||
return coredump_write(iocookie, UIO_SYSSPACE, &md_core,
|
||||
sizeof(md_core));
|
||||
}
|
||||
#endif /* COREDUMP */
|
||||
|
||||
/*
|
||||
* Map an IO request into kernel virtual address space. Requests fall into
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vm_machdep.c,v 1.86 2005/11/16 03:00:23 uwe Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.87 2006/08/31 16:49:21 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996
|
||||
|
@ -49,9 +49,10 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.86 2005/11/16 03:00:23 uwe Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.87 2006/08/31 16:49:21 matt Exp $");
|
||||
|
||||
#include "opt_multiprocessor.h"
|
||||
#include "opt_coredump.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -333,6 +334,7 @@ cpu_setfunc(struct lwp *l, void (*func)(void *), void *arg)
|
|||
pcb->pcb_wim = 1; /* Fence at window #1 */
|
||||
}
|
||||
|
||||
#ifdef COREDUMP
|
||||
/*
|
||||
* cpu_coredump is called to write a core dump header.
|
||||
* (should this be defined elsewhere? machdep.c?)
|
||||
|
@ -373,3 +375,4 @@ cpu_coredump(struct lwp *l, void *iocookie, struct core *chdr)
|
|||
return coredump_write(iocookie, UIO_SYSSPACE, &md_core,
|
||||
sizeof(md_core));
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vm_machdep.c,v 1.63 2006/02/11 17:57:32 cdi Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.64 2006/08/31 16:49:21 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996-2002 Eduardo Horvath. All rights reserved.
|
||||
|
@ -50,7 +50,9 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.63 2006/02/11 17:57:32 cdi Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.64 2006/08/31 16:49:21 matt Exp $");
|
||||
|
||||
#include "opt_coredump.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -330,6 +332,7 @@ cpu_lwp_free(l, proc)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef COREDUMP
|
||||
/*
|
||||
* cpu_coredump is called to write a core dump header.
|
||||
* (should this be defined elsewhere? machdep.c?)
|
||||
|
@ -418,3 +421,4 @@ cpu_coredump(struct lwp *l, void *iocookie, struct core *chdr)
|
|||
return coredump_write(iocookie, UIO_SYSSPACE, &md_core,
|
||||
sizeof(md_core));
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vm_machdep.c,v 1.91 2006/03/30 04:07:13 chs Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.92 2006/08/31 16:49:22 matt Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
|
||||
|
@ -31,10 +31,11 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.91 2006/03/30 04:07:13 chs Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.92 2006/08/31 16:49:22 matt Exp $");
|
||||
|
||||
#include "opt_compat_ultrix.h"
|
||||
#include "opt_multiprocessor.h"
|
||||
#include "opt_coredump.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -226,6 +227,7 @@ sys_sysarch(l, v, retval)
|
|||
return (ENOSYS);
|
||||
};
|
||||
|
||||
#ifdef COREDUMP
|
||||
/*
|
||||
* Dump the machine specific header information at the start of a core dump.
|
||||
* First put all regs in PCB for debugging purposes. This is not an good
|
||||
|
@ -261,6 +263,7 @@ cpu_coredump(struct lwp *l, void *iocookie, struct core *chdr)
|
|||
return coredump_write(iocookie, UIO_SYSSPACE, &md_core,
|
||||
sizeof(md_core));
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Map in a bunch of pages read/writable for the kernel.
|
||||
|
|
Loading…
Reference in New Issue