summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
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