From 0bcbebd6df114aea90af5c81fab1fe7ee52809c4 Mon Sep 17 00:00:00 2001 From: Scott Long Date: Mon, 1 Sep 2003 00:20:29 +0000 Subject: [PATCH] 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. --- sys/dev/aac/aac.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/aac/aac.c b/sys/dev/aac/aac.c index 14ff73764634..220b772fa5b5 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] =