mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-13 03:30:31 +00:00
dbdma: Clear cmd_in_progress before callback.
Because the callback might start DMA commands.
This commit is contained in:
parent
df0044a110
commit
bc582e64cc
@ -467,11 +467,11 @@ void DMAChannel::start() {
|
|||||||
|
|
||||||
this->queue_len = 0;
|
this->queue_len = 0;
|
||||||
|
|
||||||
|
this->cmd_in_progress = false;
|
||||||
|
|
||||||
if (this->start_cb)
|
if (this->start_cb)
|
||||||
this->start_cb();
|
this->start_cb();
|
||||||
|
|
||||||
this->cmd_in_progress = false;
|
|
||||||
|
|
||||||
// some DBDMA programs contain commands that don't transfer data
|
// some DBDMA programs contain commands that don't transfer data
|
||||||
// between a device and memory (LOAD_QUAD, STORE_QUAD, NOP and STOP).
|
// between a device and memory (LOAD_QUAD, STORE_QUAD, NOP and STOP).
|
||||||
// We thus interprete the DBDMA program until a data transfer between
|
// We thus interprete the DBDMA program until a data transfer between
|
||||||
|
Loading…
x
Reference in New Issue
Block a user