From a360628e95d26e6c23c196734cfbb2c22dab6d32 Mon Sep 17 00:00:00 2001 From: Simon Renblad Date: Thu, 6 Feb 2025 15:06:24 +0800 Subject: [PATCH] core1: use repr C in attribute writeback --- artiq/firmware/ksupport/lib.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/firmware/ksupport/lib.rs b/artiq/firmware/ksupport/lib.rs index 4f8893a87..24abb5a6b 100644 --- a/artiq/firmware/ksupport/lib.rs +++ b/artiq/firmware/ksupport/lib.rs @@ -562,12 +562,14 @@ extern "C-unwind" fn subkernel_await_message(id: i32, timeout: i64, tags: &CSlic } unsafe fn attribute_writeback(typeinfo: *const ()) { + #[repr(C)] struct Attr { offset: usize, tag: CSlice<'static, u8>, name: CSlice<'static, u8> } + #[repr(C)] struct Type { attributes: *const *const Attr, objects: *const *const ()