Skip to content

Commit 7e43350

Browse files
gyrovorbisQuzarDC
authored andcommitted
DMA speedtest build fix for genwait().
Apparently we forgot to update this example after the genwait() signature change from Paul's thread polling PR, so it fails to build currently on master. I have taken the liberty of: 1) Removing the removed last argument from the genwait() call. 2) Adding a "make run" target, which I use frequently, just cuz I noticed it was missing.
1 parent 78dcc94 commit 7e43350

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

examples/dreamcast/basic/dma/speedtest/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@ clean: rm-elf
1616
rm-elf:
1717
-rm -f $(TARGET)
1818

19+
run: $(TARGET)
20+
$(KOS_LOADER) $(TARGET)
21+
1922
$(TARGET): $(OBJS)
2023
kos-cc -o $@ $^

examples/dreamcast/basic/dma/speedtest/speedtest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ do_dma_transfer(unsigned int test, pvr_ptr_t vram1, pvr_ptr_t vram2)
9393
}
9494

9595
while ((volatile uint64_t)after == 0)
96-
genwait_wait(&after, "IRQ wait", 0, NULL);
96+
genwait_wait(&after, "IRQ wait", 0);
9797

9898
return after - before;
9999
}

0 commit comments

Comments
 (0)