Skip to content

Commit

Permalink
detect: Support run-time detection on aarch64 NetBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
taiki-e committed Feb 10, 2023
1 parent e12b4bd commit d74be6a
Show file tree
Hide file tree
Showing 10 changed files with 477 additions and 9 deletions.
13 changes: 13 additions & 0 deletions .github/.cspell/project-dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ adcs
addc
adde
armasm
armreg
autogen
auxv
auxvec
Expand All @@ -17,6 +18,7 @@ cdsg
cfgs
cinc
cirruslabs
clidr
cmpd
cmpld
cmpxchg
Expand All @@ -25,6 +27,7 @@ cpsid
cpsie
CPSR
cpuid
cpus
crand
crandc
cror
Expand Down Expand Up @@ -54,6 +57,7 @@ isync
ldaxp
ldxp
libcalls
libpthread
libtcl
libtest
lqarx
Expand All @@ -65,13 +69,20 @@ memcpy
metavar
mfence
mgba
midr
miscompilation
mmfr
moreutils
mpidr
mstatus
mvfr
NCPU
NCPUONLINE
newtype
nographic
nostdinc
NPROCESSORS
ONLN
opensbi
osxsave
prefetcher
Expand All @@ -82,6 +93,7 @@ RAII
rclass
rcpc
reentrancy
revidr
sbcs
seqlock
sete
Expand Down Expand Up @@ -126,3 +138,4 @@ xgetbv
xmmword
xsave
xsub
zeroable
8 changes: 7 additions & 1 deletion src/imp/atomic128/aarch64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,17 @@ include!("macros.rs");
path = "detect/aarch64_linux.rs"
)]
#[cfg_attr(target_os = "windows", path = "detect/aarch64_windows.rs")]
#[cfg_attr(any(target_os = "freebsd", target_os = "openbsd"), path = "detect/aarch64_aa64reg.rs")]
#[cfg_attr(
any(target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"),
path = "detect/aarch64_aa64reg.rs"
)]
#[cfg_attr(
not(any(
all(target_os = "linux", target_env = "gnu"),
target_os = "android",
target_os = "windows",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd",
)),
path = "detect/aarch64_std.rs"
Expand Down Expand Up @@ -308,6 +312,7 @@ unsafe fn atomic_compare_exchange(
target_os = "android",
target_os = "windows",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd",
)
)))]
Expand All @@ -323,6 +328,7 @@ unsafe fn atomic_compare_exchange(
target_os = "android",
target_os = "windows",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd",
)
))]
Expand Down
Loading

0 comments on commit d74be6a

Please sign in to comment.