diff options
author | phk <phk@FreeBSD.org> | 1996-05-02 09:34:51 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1996-05-02 09:34:51 +0000 |
commit | 7bfc0101cb7b18e50bfb65137a0be725c51d26cb (patch) | |
tree | dc9ce6f01e6fe69eb3e4d0a274e9b8a8982294fc /sys/vm | |
parent | e4ee69bc24265771337795e724a2f50a50cbc78b (diff) | |
download | FreeBSD-src-7bfc0101cb7b18e50bfb65137a0be725c51d26cb.zip FreeBSD-src-7bfc0101cb7b18e50bfb65137a0be725c51d26cb.tar.gz |
KGDB is dead. It may come back one day if somebody does it.
Diffstat (limited to 'sys/vm')
-rw-r--r-- | sys/vm/vm_extern.h | 7 | ||||
-rw-r--r-- | sys/vm/vm_glue.c | 18 |
2 files changed, 2 insertions, 23 deletions
diff --git a/sys/vm/vm_extern.h b/sys/vm/vm_extern.h index b0d7480..60c7850 100644 --- a/sys/vm/vm_extern.h +++ b/sys/vm/vm_extern.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)vm_extern.h 8.2 (Berkeley) 1/12/94 - * $Id: vm_extern.h,v 1.23 1996/02/04 22:08:57 dyson Exp $ + * $Id: vm_extern.h,v 1.24 1996/02/23 18:49:23 peter Exp $ */ #ifndef _VM_EXTERN_H_ @@ -44,11 +44,6 @@ struct vmtotal; struct mount; struct vnode; -#ifdef KGDB -void chgkprot __P((caddr_t, int, int)); - -#endif - #ifdef KERNEL extern int indent; diff --git a/sys/vm/vm_glue.c b/sys/vm/vm_glue.c index 4bcb2cd..4e6db8c 100644 --- a/sys/vm/vm_glue.c +++ b/sys/vm/vm_glue.c @@ -59,7 +59,7 @@ * any improvements or extensions that they make and grant Carnegie the * rights to redistribute these changes. * - * $Id: vm_glue.c,v 1.46 1996/04/08 03:42:01 dyson Exp $ + * $Id: vm_glue.c,v 1.47 1996/04/09 04:36:58 dyson Exp $ */ #include "opt_ddb.h" @@ -158,22 +158,6 @@ useracc(addr, len, rw) return (rv == TRUE); } -#ifdef KGDB -/* - * Change protections on kernel pages from addr to addr+len - * (presumably so debugger can plant a breakpoint). - * All addresses are assumed to reside in the Sysmap, - */ -chgkprot(addr, len, rw) - register caddr_t addr; - int len, rw; -{ - vm_prot_t prot = rw == B_READ ? VM_PROT_READ : VM_PROT_WRITE; - - vm_map_protect(kernel_map, trunc_page(addr), - round_page(addr + len), prot, FALSE); -} -#endif void vslock(addr, len) caddr_t addr; |