summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/amd64/amd64/trap.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index 37246b1..d3adf65 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -166,21 +166,15 @@ trap(struct trapframe *frame)
#ifdef KDTRACE_HOOKS
struct reg regs;
#endif
- ksiginfo_t ksi;
- struct thread *td;
- struct proc *p;
- register_t addr;
+ struct thread *td = curthread;
+ struct proc *p = td->td_proc;
#ifdef KDB
register_t dr6;
#endif
- int i, ucode;
+ int i = 0, ucode = 0;
u_int type;
-
- td = curthread;
- p = td->td_proc;
- i = 0;
- ucode = 0;
- addr = 0;
+ register_t addr = 0;
+ ksiginfo_t ksi;
PCPU_INC(cnt.v_trap);
type = frame->tf_trapno;
OpenPOWER on IntegriCloud