-/* $OpenBSD: trap.c,v 1.7 1997/02/05 17:33:02 downsj Exp $ */
+/* $OpenBSD: trap.c,v 1.8 1997/02/21 06:07:25 deraadt Exp $ */
/* $NetBSD: trap.c,v 1.47 1996/10/14 20:06:31 thorpej Exp $ */
/*
vftype = VM_PROT_WRITE;
ftype = VM_PROT_READ | VM_PROT_WRITE;
} else
- ftype = VM_PROT_READ;
+ vftype = ftype = VM_PROT_READ;
va = trunc_page((vm_offset_t)v);
-/* $OpenBSD: trap.c,v 1.13 1997/02/04 17:23:20 deraadt Exp $ */
+/* $OpenBSD: trap.c,v 1.14 1997/02/21 06:07:27 deraadt Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
vftype = VM_PROT_WRITE;
ftype = VM_PROT_READ | VM_PROT_WRITE;
} else
- ftype = VM_PROT_READ;
+ vftype = ftype = VM_PROT_READ;
va = trunc_page((vm_offset_t)v);
if (map == kernel_map && va == 0) {
-/* $OpenBSD: trap.c,v 1.14 1997/02/06 20:03:59 kstailey Exp $ */
+/* $OpenBSD: trap.c,v 1.15 1997/02/21 06:07:28 deraadt Exp $ */
/* $NetBSD: trap.c,v 1.63-1.65ish 1997/01/16 15:41:40 gwr Exp $ */
/*
vftype = VM_PROT_WRITE;
ftype = VM_PROT_READ | VM_PROT_WRITE;
} else
- ftype = VM_PROT_READ;
+ vftype = ftype = VM_PROT_READ;
va = trunc_page((vm_offset_t)v);
/*