Skip to content

Commit

Permalink
kernel/arch_helpers: remove 32bit infix from encode_syscall_return_tr…
Browse files Browse the repository at this point in the history
…d104
  • Loading branch information
lschuermann committed Nov 13, 2024
1 parent 3810ca8 commit 0709e6a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/cortex-m/src/syscall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ impl<A: CortexMVariant> kernel::syscall::UserspaceKernelBoundary for SysCall<A>
//
// 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,
),
Expand Down
2 changes: 1 addition & 1 deletion arch/rv32i/src/syscall.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
),
Expand Down
2 changes: 1 addition & 1 deletion kernel/src/utilities/arch_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0709e6a

Please sign in to comment.