From 2e970a26417ab03e0be4a24f1674e37a3448c3fc Mon Sep 17 00:00:00 2001 From: gibbs Date: Fri, 13 Aug 2004 21:39:14 +0000 Subject: [PATCH] Fix an off by one in the critical section clearing code. The code was adjusting twice for the instruction pointer indicating the *next* instruction to execute. The aic79xx driver had a similar bug, but was fixed some time ago. --- sys/dev/aic7xxx/aic7xxx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/aic7xxx/aic7xxx.c b/sys/dev/aic7xxx/aic7xxx.c index ef40938be458..7430503b3483 100644 --- a/sys/dev/aic7xxx/aic7xxx.c +++ b/sys/dev/aic7xxx/aic7xxx.c @@ -1443,8 +1443,6 @@ ahc_clear_critical_section(struct ahc_softc *ahc) * so we are really executing the instruction just * before it. */ - if (seqaddr != 0) - seqaddr -= 1; cs = ahc->critical_sections; for (i = 0; i < ahc->num_critical_sections; i++, cs++) {