summaryrefslogtreecommitdiff
path: root/sys/arch/vax
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2008-08-15 22:47:46 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2008-08-15 22:47:46 +0000
commit0df2746716786ccb14fb7375830f920416f700c7 (patch)
tree4812b789fae900ec331f2494c8b4ff23b8d15514 /sys/arch/vax
parentd3e1bb3b3484cd0c02ebdc5eee2a05f781fddd99 (diff)
Fix array index computation in the machine check handler. Gives fatal bus errors
a chance to be reported correctly...
Diffstat (limited to 'sys/arch/vax')
-rw-r--r--sys/arch/vax/vax/ka650.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/vax/vax/ka650.c b/sys/arch/vax/vax/ka650.c
index 2169c529e64..fd2b5cd6b91 100644
--- a/sys/arch/vax/vax/ka650.c
+++ b/sys/arch/vax/vax/ka650.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ka650.c,v 1.15 2008/08/15 22:38:23 miod Exp $ */
+/* $OpenBSD: ka650.c,v 1.16 2008/08/15 22:47:45 miod Exp $ */
/* $NetBSD: ka650.c,v 1.25 2001/04/27 15:02:37 ragge Exp $ */
/*
* Copyright (c) 1988 The Regents of the University of California.
@@ -185,7 +185,7 @@ uvaxIII_mchk(cmcf)
printf("machine check %x", type);
if (type >= 0x80 && type <= 0x83)
- type -= (0x80 + 11);
+ type -= 0x80 - 11;
if (type < NMC650 && mc650[type])
printf(": %s", mc650[type]);
printf("\n\tvap %x istate1 %x istate2 %x pc %x psl %x\n",