From c6ba0f3cf4413e8b35f4598c7bb42ac9ad83e274 Mon Sep 17 00:00:00 2001 From: occheung Date: Thu, 2 Sep 2021 14:18:22 +0800 Subject: [PATCH] ksupport: fix dma cslice (ffi) --- artiq/firmware/ksupport/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/artiq/firmware/ksupport/lib.rs b/artiq/firmware/ksupport/lib.rs index e3613d1dc..227816049 100644 --- a/artiq/firmware/ksupport/lib.rs +++ b/artiq/firmware/ksupport/lib.rs @@ -248,7 +248,7 @@ fn dma_record_flush() { } #[unwind(allowed)] -extern fn dma_record_start(name: CSlice) { +extern fn dma_record_start(name: &CSlice) { let name = str::from_utf8(name.as_ref()).unwrap(); unsafe { @@ -360,7 +360,7 @@ extern fn dma_record_output_wide(target: i32, words: CSlice) { } #[unwind(aborts)] -extern fn dma_erase(name: CSlice) { +extern fn dma_erase(name: &CSlice) { let name = str::from_utf8(name.as_ref()).unwrap(); send(&DmaEraseRequest { name: name }); @@ -373,7 +373,7 @@ struct DmaTrace { } #[unwind(allowed)] -extern fn dma_retrieve(name: CSlice) -> DmaTrace { +extern fn dma_retrieve(name: &CSlice) -> DmaTrace { let name = str::from_utf8(name.as_ref()).unwrap(); send(&DmaRetrieveRequest { name: name });