diff --git a/arch/cortex-m/src/syscall.rs b/arch/cortex-m/src/syscall.rs index 840240cd67..773158ba70 100644 --- a/arch/cortex-m/src/syscall.rs +++ b/arch/cortex-m/src/syscall.rs @@ -195,7 +195,7 @@ impl kernel::syscall::UserspaceKernelBoundary for SysCall // // Refer to // https://doc.rust-lang.org/std/primitive.pointer.html#safety-13 - kernel::utilities::arch_helpers::encode_syscall_return_32bit_trd104( + kernel::utilities::arch_helpers::encode_syscall_return_trd104( &kernel::utilities::arch_helpers::TRD104SyscallReturn::from_syscall_return( return_value, ), diff --git a/arch/rv32i/src/syscall.rs b/arch/rv32i/src/syscall.rs index d787020741..0ea6aa9507 100644 --- a/arch/rv32i/src/syscall.rs +++ b/arch/rv32i/src/syscall.rs @@ -172,7 +172,7 @@ impl kernel::syscall::UserspaceKernelBoundary for SysCall { let (a1slice, r) = r.split_at_mut(R_A2 - R_A1); let (a2slice, a3slice) = r.split_at_mut(R_A3 - R_A2); - kernel::utilities::arch_helpers::encode_syscall_return_32bit_trd104( + kernel::utilities::arch_helpers::encode_syscall_return_trd104( &kernel::utilities::arch_helpers::TRD104SyscallReturn::from_syscall_return( return_value, ), diff --git a/kernel/src/utilities/arch_helpers.rs b/kernel/src/utilities/arch_helpers.rs index 61466f55a3..4198eafa15 100644 --- a/kernel/src/utilities/arch_helpers.rs +++ b/kernel/src/utilities/arch_helpers.rs @@ -128,7 +128,7 @@ impl TRD104SyscallReturn { /// Encode the system call return value into 4 registers, following the encoding /// specified in TRD104. Architectures which do not follow TRD104 are free to /// define their own encoding. -pub fn encode_syscall_return_32bit_trd104( +pub fn encode_syscall_return_trd104( syscall_return: &TRD104SyscallReturn, a0: &mut u32, a1: &mut u32,