rtio_acp: fix batch not remapping back for 0 events

This commit was merged in pull request #451.
This commit is contained in:
2026-01-23 10:15:24 +08:00
committed by sb10q
parent 5bd6fe0ad5
commit 1c4534637d

View File

@@ -320,6 +320,7 @@ pub extern "C" fn batch_end() {
unsafe {
if OUT_BUFFER.ptr == 0 {
OUT_BUFFER.running = BATCH_DISABLED;
mmu::remap_section(&__rtio_page as *const _ as u32, &__rtio_page as *const _ as u32);
return;
}
// dmb and send event (commit the event to gateware)