diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2015-05-05 02:13:48 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2015-05-05 02:13:48 +0000 |
commit | 40b409238afa7889605830c063f16b4d731eaec2 (patch) | |
tree | 07026cd7c5b72f5fe0c6ee04fa46812bcb5229c4 /sys/arch/hppa64 | |
parent | 8b8ca5671214b412eb81645a853cca97bd0c4963 (diff) |
emul_native is only used for kernel threads which can't dump core, so
delete coredump_trad(), uvm_coredump(), cpu_coredump(), struct md_coredump,
and various #includes that are superfluous.
This leaves compat_linux processes without a coredump callback. If that
ability is desired, someone should update it to use coredump_elf32() and
verify the results...
ok kettenis@
Diffstat (limited to 'sys/arch/hppa64')
-rw-r--r-- | sys/arch/hppa64/hppa64/vm_machdep.c | 44 | ||||
-rw-r--r-- | sys/arch/hppa64/include/pcb.h | 8 |
2 files changed, 2 insertions, 50 deletions
diff --git a/sys/arch/hppa64/hppa64/vm_machdep.c b/sys/arch/hppa64/hppa64/vm_machdep.c index f582b9167d0..fa9abd7fdf0 100644 --- a/sys/arch/hppa64/hppa64/vm_machdep.c +++ b/sys/arch/hppa64/hppa64/vm_machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm_machdep.c,v 1.21 2014/11/16 12:30:57 deraadt Exp $ */ +/* $OpenBSD: vm_machdep.c,v 1.22 2015/05/05 02:13:46 guenther Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -28,7 +28,6 @@ #include <sys/user.h> #include <sys/ptrace.h> #include <sys/exec.h> -#include <sys/core.h> #include <sys/pool.h> #include <uvm/uvm_extern.h> @@ -39,47 +38,6 @@ extern struct pool hppa_fppl; -/* - * Dump the machine specific header information at the start of a core dump. - */ -int -cpu_coredump(struct proc *p, struct vnode *vp, struct ucred *cred, - struct core *core) -{ - struct md_coredump md_core; - struct coreseg cseg; - off_t off; - int error; - - CORE_SETMAGIC(*core, COREMAGIC, MID_HPPA20, 0); - core->c_hdrsize = ALIGN(sizeof(*core)); - core->c_seghdrsize = ALIGN(sizeof(cseg)); - core->c_cpusize = sizeof(md_core); - - process_read_regs(p, &md_core.md_reg); - process_read_fpregs(p, &md_core.md_fpreg); - - CORE_SETMAGIC(cseg, CORESEGMAGIC, MID_HPPA20, CORE_CPU); - cseg.c_addr = 0; - cseg.c_size = core->c_cpusize; - -#define write(vp, addr, n) \ - vn_rdwr(UIO_WRITE, (vp), (caddr_t)(addr), (n), off, \ - UIO_SYSSPACE, IO_UNIT, cred, NULL, p) - - off = core->c_hdrsize; - if ((error = write(vp, &cseg, core->c_seghdrsize))) - return error; - off += core->c_seghdrsize; - if ((error = write(vp, &md_core, sizeof md_core))) - return error; - -#undef write - core->c_nseg++; - - return error; -} - void cpu_fork(struct proc *p1, struct proc *p2, void *stack, size_t stacksize, void (*func)(void *), void *arg) diff --git a/sys/arch/hppa64/include/pcb.h b/sys/arch/hppa64/include/pcb.h index 8ed995f81f9..2a8cee8eb8b 100644 --- a/sys/arch/hppa64/include/pcb.h +++ b/sys/arch/hppa64/include/pcb.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pcb.h,v 1.4 2011/11/10 23:15:11 deraadt Exp $ */ +/* $OpenBSD: pcb.h,v 1.5 2015/05/05 02:13:46 guenther Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -31,10 +31,4 @@ struct pcb { pa_space_t pcb_space; /* copy pmap_space, for asm's sake */ }; -struct md_coredump { - struct reg md_reg; - struct fpreg md_fpreg; -}; - - #endif /* _MACHINE_PCB_H_ */ |