Skip to content

Commit 8fb6ea2

Browse files
DC-SWATQuzarDC
authored andcommitted
g2dma: Fixed race condition for DMA progress checking.
1 parent 9cfdd89 commit 8fb6ea2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • kernel/arch/dreamcast/hardware

kernel/arch/dreamcast/hardware/g2dma.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ int g2_dma_transfer(void *sh4, void *g2bus, size_t length, uint32_t block,
184184
errno = EFAULT;
185185
return -1;
186186
}
187+
irq_disable_scoped();
187188

188189
/* Make sure we're not already DMA'ing */
189190
if(dma_progress[g2chn] != 0) {

0 commit comments

Comments
 (0)