summaryrefslogtreecommitdiffstats
path: root/sys/dev/aac
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2003-09-01 00:20:29 +0000
committerscottl <scottl@FreeBSD.org>2003-09-01 00:20:29 +0000
commit21e914dc2afc10e27598f5e4756373f8d198104c (patch)
tree11c737839ef237ff5c4d74d1f6e052c73724fcf3 /sys/dev/aac
parentf11904081f2fbdc847da82876bca46406a26d866 (diff)
downloadFreeBSD-src-21e914dc2afc10e27598f5e4756373f8d198104c.zip
FreeBSD-src-21e914dc2afc10e27598f5e4756373f8d198104c.tar.gz
If ~ chars were pennies, I'd be pennyless. This should fix all of the
'command not in queue' panics. Also fix a nearby style problem.
Diffstat (limited to 'sys/dev/aac')
-rw-r--r--sys/dev/aac/aac.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/aac/aac.c b/sys/dev/aac/aac.c
index 14ff737..220b772 100644
--- a/sys/dev/aac/aac.c
+++ b/sys/dev/aac/aac.c
@@ -1581,8 +1581,9 @@ aac_init(struct aac_softc *sc)
* virtue of a table.
*/
qoffset = offsetof(struct aac_common, ac_qbuf) + AAC_QUEUE_ALIGN;
- qoffset &= (AAC_QUEUE_ALIGN - 1);
- sc->aac_queues = (struct aac_queue_table *)((uintptr_t)sc->aac_common + qoffset);
+ qoffset &= ~(AAC_QUEUE_ALIGN - 1);
+ sc->aac_queues =
+ (struct aac_queue_table *)((uintptr_t)sc->aac_common + qoffset);
ip->CommHeaderAddress = sc->aac_common_busaddr + qoffset;
sc->aac_queues->qt_qindex[AAC_HOST_NORM_CMD_QUEUE][AAC_PRODUCER_INDEX] =
OpenPOWER on IntegriCloud