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.
This commit is contained in:
parent
47f756866a
commit
0bcbebd6df
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=119625
@ -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] =
|
||||
|
Loading…
Reference in New Issue
Block a user