rt-thread/libcpu/aarch64
Shell e25fc8b511
[libcpu/arm64] add C11 atomic ticket spinlock (#8882)
* [libcpu/arm64] add C11 atomic ticket spinlock

Replace the former implementation of flag-based spinlock which is unfair

Besides, C11 atomic implementation is more readable (it's C anyway),
and maintainable. Cause toolchain can use their builtin optimization and
tune for different micro-architectures. For example armv8.5 introduces a
better instruction. The compiler can help with that when it knows your
target platform in support of it.

Signed-off-by: Shell <smokewood@qq.com>

* fixup: RT_CPUS_NR

---------

Signed-off-by: Shell <smokewood@qq.com>
2024-05-16 15:45:12 +08:00
..
common [libcpu/arm64] add C11 atomic ticket spinlock (#8882) 2024-05-16 15:45:12 +08:00
cortex-a [libcpu/arm64] dealing with mem region out of kernel space (#8847) 2024-05-08 09:23:31 +08:00
.gitignore AArch64: support public linker scripts (#7831) 2023-07-25 21:31:44 +08:00
SConscript [smart] fixup of lwp recycling and mm varea (#8206) 2023-11-02 20:23:11 +08:00
link.lds.S AArch64: support public linker scripts (#7831) 2023-07-25 21:31:44 +08:00