Skip to content

Commit

Permalink
Add init_fn definition for loongarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
k0tran authored Aug 23, 2024
1 parent d3e6841 commit dba2d49
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/reg_context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ mod test {
init_fn_impl(arg, f)
}

#[cfg(target_arch = "loongarch64")]
extern "C" fn init_fn(arg: usize, f: *mut usize) -> ! {
init_fn_impl(arg, f)
}

#[cfg(target_arch = "riscv64")]
extern "C" fn init_fn(arg: usize, f: *mut usize) -> ! {
init_fn_impl(arg, f)
Expand Down

0 comments on commit dba2d49

Please sign in to comment.