zephyr/arch/posix/core
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
..
nsi_compat arch posix: Cleanup old code 2024-08-13 18:18:25 -04:00
offsets arch: posix: Remove unused offset symbols 2023-02-23 16:44:07 +01:00
CMakeLists.txt arch posix: Cleanup old code 2024-08-13 18:18:25 -04:00
cpuhalt.c arch: migrate includes to <zephyr/...> 2022-05-06 19:57:22 +02:00
fatal.c arch: posix: break debugger on fatal error 2023-08-04 14:15:19 +02:00
fatal_trap.c arch: posix: break debugger on fatal error 2023-08-04 14:15:19 +02:00
irq.c arch: initialize irq_offload during boot, do not use SYS_INIT 2024-09-17 20:05:22 -04:00
posix_core_nsi.c arch posix: Implement arch_thread_name_set() 2024-08-23 08:01:33 -04:00
swap.c kernel: move current thread pointer management to core code 2025-01-10 07:49:08 +01:00
thread.c Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00