zephyr/arch/posix
Nicolas Pitre 7a3124d866 kernel: move current thread pointer management to core code
Define the generic _current directly and get rid of the generic
arch_current_get().

The SMP default implementation is now known as z_smp_current_get().
It is no longer inlined which saves significant binary size (about 10%
for some random test case I checked).

Introduce z_current_thread_set() and use it in place of
arch_current_thread_set() for updating the current thread pointer
given this is not necessarily an architecture specific operation.
The architecture specific optimization, when enabled, should only care
about its own things and not have to also update the generic
_current_cpu->current copy.

Signed-off-by: Nicolas Pitre <npitre@baylibre.com>
2025-01-10 07:49:08 +01:00
..
core kernel: move current thread pointer management to core code 2025-01-10 07:49:08 +01:00
include kernel: arch: move arch_swap() declaration 2024-12-11 21:33:49 +01:00
CMakeLists.txt sample fuzzer: Move fuzzer specific code to sample and fix for native_sim 2024-05-02 20:46:03 +03:00
Kconfig arch posix fuzzing: Move kconfig options to sample 2024-05-02 20:46:03 +03:00
Linux.aarch64.cmake arch/posix cmake: Replace native_posix w native_sim and use hwmv2 names 2024-03-15 16:13:12 +01:00