summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2011-03-30 13:50:56 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2011-03-30 13:50:56 +0000
commitb2a9719f14570a8a33e5ad1f35147d99f6b42f91 (patch)
tree557db4b8dfee8b4f0810b3e79b0ec1fd7a75ac9f
parent26aa2acda6493c06e04d06d775c3d5fbfd43a084 (diff)
Fix diagnostic by correctly initialising oldcpl.
-rw-r--r--sys/arch/hppa64/hppa64/trap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/hppa64/hppa64/trap.c b/sys/arch/hppa64/hppa64/trap.c
index eb12c1cb2e1..0f85a339aae 100644
--- a/sys/arch/hppa64/hppa64/trap.c
+++ b/sys/arch/hppa64/hppa64/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.13 2011/01/02 13:16:53 jsing Exp $ */
+/* $OpenBSD: trap.c,v 1.14 2011/03/30 13:50:55 jsing Exp $ */
/*
* Copyright (c) 2005 Michael Shalayeff
@@ -178,7 +178,7 @@ trap(type, frame)
const char *tts;
vm_fault_t fault = VM_FAULT_INVALID;
#ifdef DIAGNOSTIC
- long oldcpl;
+ long oldcpl = cpl;
#endif
trapnum = type & ~T_USER;
@@ -584,7 +584,7 @@ syscall(struct trapframe *frame)
int retq, nsys, code, argsize, argoff, oerror, error;
register_t args[8], rval[2];
#ifdef DIAGNOSTIC
- long oldcpl;
+ long oldcpl = cpl;
#endif
/* TODO syscall */