From 1d75c127e89f82e6a00887eddd8a1763b6e4814a Mon Sep 17 00:00:00 2001 From: Vihaan Jim Date: Tue, 1 Aug 2023 18:55:57 -0400 Subject: [PATCH] Fix `ProcessStartup' Previously, `ProcessStartup' did not have `repr(C)' above it. This meant that it was using rust layout, which is weird and is not compatible with `_xous_syscall_return_result' --- xous-rs/src/arch/riscv/process.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/xous-rs/src/arch/riscv/process.rs b/xous-rs/src/arch/riscv/process.rs index 1131933da..2d84398fe 100644 --- a/xous-rs/src/arch/riscv/process.rs +++ b/xous-rs/src/arch/riscv/process.rs @@ -83,6 +83,7 @@ impl TryFrom<[usize; 7]> for ProcessInit { } /// When a new process is created, this platform-specific structure is returned. +#[repr(C)] #[derive(Debug, PartialEq)] pub struct ProcessStartup { /// The process ID of the new process