From da0eedaa765086d1299c827526df5f5a0954904c Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Mon, 17 Apr 2023 10:16:22 +0800 Subject: [PATCH] Fix mismatched signatures for the wide interface --- src/runtime/src/kernel/dma.rs | 2 +- src/runtime/src/rtio_csr.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/src/kernel/dma.rs b/src/runtime/src/kernel/dma.rs index a19d95f..9151cdd 100644 --- a/src/runtime/src/kernel/dma.rs +++ b/src/runtime/src/kernel/dma.rs @@ -116,7 +116,7 @@ pub extern fn dma_record_output(target: i32, word: i32) { } } -pub extern fn dma_record_output_wide(target: i32, words: CSlice) { +pub extern fn dma_record_output_wide(target: i32, words: &CSlice) { assert!(words.len() <= 16); // enforce the hardware limit unsafe { diff --git a/src/runtime/src/rtio_csr.rs b/src/runtime/src/rtio_csr.rs index 761dcbe..b08c90e 100644 --- a/src/runtime/src/rtio_csr.rs +++ b/src/runtime/src/rtio_csr.rs @@ -94,7 +94,7 @@ pub extern fn output(target: i32, data: i32) { } } -pub extern fn output_wide(target: i32, data: CSlice) { +pub extern fn output_wide(target: i32, data: &CSlice) { unsafe { csr::rtio::target_write(target as u32); // writing target clears o_data