diff options
author | 2008-08-15 22:47:45 +0000 | |
---|---|---|
committer | 2008-08-15 22:47:45 +0000 | |
commit | be388e5e712916a04bbe7d5eb54e7520d021d915 (patch) | |
tree | 4839e90dc698cff7825efd12ab1d0b7f5c95c813 | |
parent | In dzcninit(), do not forget to enable the receiver in addition to the (diff) | |
download | wireguard-openbsd-be388e5e712916a04bbe7d5eb54e7520d021d915.tar.xz wireguard-openbsd-be388e5e712916a04bbe7d5eb54e7520d021d915.zip |
Fix array index computation in the machine check handler. Gives fatal bus errors
a chance to be reported correctly...
-rw-r--r-- | sys/arch/vax/vax/ka650.c | 4 |
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", |