summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-07-25 01:34:01 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-07-25 01:34:01 +0000
commit62c1a6ab4d2d30f6036c5f04d8ba21230ec81041 (patch)
tree84475c3e0d1f695e8e72baf01525c24a2c27f64a /sys/arch/i386
parentca83b4cacf4f1df98f7ae031188887a0a0cad334 (diff)
init uninitialized
remove dumb var
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/trap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c
index 657fb24791f..8790b52f451 100644
--- a/sys/arch/i386/i386/trap.c
+++ b/sys/arch/i386/i386/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.22 1997/04/05 21:24:48 flipk Exp $ */
+/* $OpenBSD: trap.c,v 1.23 1997/07/25 01:34:00 mickey Exp $ */
/* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */
#undef DEBUG
@@ -211,7 +211,8 @@ trap(frame)
type |= T_USER;
sticks = p->p_sticks;
p->p_md.md_regs = &frame;
- }
+ } else
+ sticks = 0;
switch (type) {
@@ -376,9 +377,8 @@ trap(frame)
int rv;
extern vm_map_t kernel_map;
unsigned nss, v;
- caddr_t vv = (caddr_t)rcr2();
- va = trunc_page((vm_offset_t)vv);
+ va = trunc_page((vm_offset_t)rcr2());
/*
* It is only a kernel address space fault iff:
* 1. (type & T_USER) == 0 and