summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2023-12-13 11:20:19 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2023-12-13 11:20:19 +0000
commitbccdbb5d31a5f5230f0a2baed4855a0c7d325140 (patch)
tree86cdeaea5580a693a3ff35d15814567a82cd79ab
parent31a439d3ce350e4d14feab6cf3fa83340dab443b (diff)
Put back variable initialization mistakenly lost in 1.162
-rw-r--r--sys/arch/hppa/hppa/trap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/hppa/hppa/trap.c b/sys/arch/hppa/hppa/trap.c
index 2a92b7d7b40..09af95b8da2 100644
--- a/sys/arch/hppa/hppa/trap.c
+++ b/sys/arch/hppa/hppa/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.162 2023/12/12 15:30:55 deraadt Exp $ */
+/* $OpenBSD: trap.c,v 1.163 2023/12/13 11:20:18 miod Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -779,6 +779,7 @@ syscall(struct trapframe *frame)
p->p_md.md_regs = frame;
argoff = 4; retq = 0;
+ code = frame->tf_t1;
args[0] = frame->tf_arg0;
args[1] = frame->tf_arg1;
args[2] = frame->tf_arg2;