summaryrefslogtreecommitdiffstats
path: root/sys/dev/aic7xxx
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>2004-08-13 21:39:14 +0000
committergibbs <gibbs@FreeBSD.org>2004-08-13 21:39:14 +0000
commit2e970a26417ab03e0be4a24f1674e37a3448c3fc (patch)
treee6fd9b9b5124926ac4493190f45a9371ab173bbf /sys/dev/aic7xxx
parent6994ab16ad3a31853d01ae1c3fc838808782f8da (diff)
downloadFreeBSD-src-2e970a26417ab03e0be4a24f1674e37a3448c3fc.zip
FreeBSD-src-2e970a26417ab03e0be4a24f1674e37a3448c3fc.tar.gz
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.
Diffstat (limited to 'sys/dev/aic7xxx')
-rw-r--r--sys/dev/aic7xxx/aic7xxx.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/aic7xxx/aic7xxx.c b/sys/dev/aic7xxx/aic7xxx.c
index ef40938..7430503 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++) {
OpenPOWER on IntegriCloud