zephyr/arch
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
..
arc Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
arm kernel: move current thread pointer management to core code 2025-01-10 07:49:08 +01:00
arm64 Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
common arm: mpu: Unify ARM_MPU kconfig definitions 2025-01-09 11:55:22 +01:00
mips kernel: arch: move arch_swap() declaration 2024-12-11 21:33:49 +01:00
nios2 arch: nios2: timing: Fix timing cycles rollover 2025-01-06 17:13:10 +00:00
posix kernel: move current thread pointer management to core code 2025-01-10 07:49:08 +01:00
riscv Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
sparc Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
x86 Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
xtensa Revert "arch: deprecate _current" 2025-01-10 07:49:08 +01:00
archs.yml hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
CMakeLists.txt cmake: enable -Wshadow partially for in-tree code 2023-08-22 11:39:58 +02:00
Kconfig arch: local ISR table declaration: Remove experimental label 2024-12-05 12:29:58 +01:00
Kconfig.v1 hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00
Kconfig.v2 hwmv2: Introduce Hardware model version 2 and convert devices 2024-03-02 16:56:33 -05:00