Fix compile errors on FreeBSD x64/arm64 (#5606)
* Fix compile error on FreeBSD x64 * Fix compile on FreeBSD arm64 * Update Cargo.lock for ittapi * vet: certify diff for ittapi libraries Co-authored-by: Andrew Brown <andrew.brown@intel.com>
This commit is contained in:
committed by
GitHub
parent
5e8c6c9117
commit
86790d36df
@@ -224,6 +224,12 @@ unsafe fn get_pc_and_fp(cx: *mut libc::c_void, _signum: libc::c_int) -> (*const
|
||||
cx.uc_mcontext.__gregs[libc::REG_PC] as *const u8,
|
||||
cx.uc_mcontext.__gregs[libc::REG_S0] as usize,
|
||||
)
|
||||
} else if #[cfg(all(target_os = "freebsd", target_arch = "aarch64"))] {
|
||||
let cx = &*(cx as *const libc::mcontext_t);
|
||||
(
|
||||
cx.mc_gpregs.gp_elr as *const u8,
|
||||
cx.mc_gpregs.gp_x[29] as usize,
|
||||
)
|
||||
}
|
||||
else {
|
||||
compile_error!("unsupported platform");
|
||||
|
||||
Reference in New Issue
Block a user