From 1a50106e308050e8fc5be47f280e26cf2d850d37 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Sat, 7 Sep 2002 01:26:34 +0000 Subject: Zap the implementations of the i386-aout specific cpu_coredump function. Most of the non-i386 platforms had rather broken implementations anyway. --- sys/alpha/alpha/vm_machdep.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'sys/alpha') diff --git a/sys/alpha/alpha/vm_machdep.c b/sys/alpha/alpha/vm_machdep.c index dc1e52bbbaf2..c34f9f1ec018 100644 --- a/sys/alpha/alpha/vm_machdep.c +++ b/sys/alpha/alpha/vm_machdep.c @@ -394,29 +394,6 @@ cpu_wait(p) { } -/* - * Dump the machine specific header information at the start of a core dump. - */ -int -cpu_coredump(td, vp, cred) - struct thread *td; - struct vnode *vp; - struct ucred *cred; -{ - int error; - - /* XXXKSE this is totally bogus! (and insecure) */ - error = vn_rdwr(UIO_WRITE, vp, (caddr_t) td->td_proc->p_uarea, - ctob(UAREA_PAGES), (off_t)0, - UIO_SYSSPACE, IO_UNIT, cred, NOCRED, (int *)NULL, td); - if (error) - return error; - error = vn_rdwr(UIO_WRITE, vp, (caddr_t) td->td_kstack, - ctob(KSTACK_PAGES), (off_t)ctob(UAREA_PAGES), - UIO_SYSSPACE, IO_UNIT, cred, NOCRED, (int *)NULL, td); - return error; -} - /* * Map an IO request into kernel virtual address space. * -- cgit v1.3