From: miod Date: Fri, 15 Aug 2008 22:47:45 +0000 (+0000) Subject: Fix array index computation in the machine check handler. Gives fatal bus errors X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=be388e5e712916a04bbe7d5eb54e7520d021d915;p=openbsd Fix array index computation in the machine check handler. Gives fatal bus errors a chance to be reported correctly... --- 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",