Skip to content
Commit 834da197 authored by Rich Felker's avatar Rich Felker
Browse files

sh: add AT_HWCAP flag for J-Core cas.l instruction



The J-Core cpu has, as an ISA extension, an atomic compare-and-swap
instruction cas.l which applications need to use (instead the imask or
gusa atomic models, which are fundamentally limited to UP) for
synchronization in order to be compatible with SMP systems. Provide a
hwcap flag so that it's possible to do runtime selection and support
both.

Signed-off-by: default avatarRich Felker <dalias@libc.org>
parent 5a846aba
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment