1
0
Fork 0
forked from nuttx/nuttx-update
local-nuttx-update/arch
hujun5 1e49cb4828 armv7-a/armv7-r/armv8-r: percpu reg store this_task
This is continue work of https://github.com/apache/nuttx/pull/13726

We can utilize percpu storage to hold information about the
current running task. If we intend to implement this feature, we would
need to define two macros that help us manage this percpu information
effectively.

up_this_task: This macro is designed to read the contents of the percpu
register to retrieve information about the current
running task.This allows us to quickly access
task-specific data without having to disable interrupts,
access global variables and obtain the current cpu index.

up_update_task: This macro is responsible for updating the contents of
the percpu register.It is typically called during
initialization or when a context switch occurs to ensure
that the percpu register reflects the information of the
newly running task.

Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-12-06 09:27:33 +08:00
..
arm armv7-a/armv7-r/armv8-r: percpu reg store this_task 2024-12-06 09:27:33 +08:00
arm64 Remove FAR from 32/64bit arch 2024-12-05 22:55:39 +08:00
avr remove redundant judgments *running_task != NULL 2024-12-04 22:50:08 +08:00
ceva arch/ceva: migrate to SPDX identifier 2024-12-02 22:43:23 +08:00
dummy arch: Add custom arch chip build support 2020-10-20 14:48:16 +08:00
hc remove redundant judgments *running_task != NULL 2024-12-04 22:50:08 +08:00
mips addrenv: Ensure that the transmission parameter of addrenv_switch is not NULL 2024-12-04 14:20:12 +08:00
misoc addrenv: Ensure that the transmission parameter of addrenv_switch is not NULL 2024-12-04 14:20:12 +08:00
or1k remove redundant judgments *running_task != NULL 2024-12-04 22:50:08 +08:00
renesas remove redundant judgments *running_task != NULL 2024-12-04 22:50:08 +08:00
risc-v Remove FAR from 32/64bit arch 2024-12-05 22:55:39 +08:00
sim cmake(bugfix):fix CMake build break on MacOS 2024-12-05 23:36:16 +08:00
sparc addrenv: Ensure that the transmission parameter of addrenv_switch is not NULL 2024-12-04 14:20:12 +08:00
tricore debug symbol level: Use config instead 2024-12-04 22:36:45 +08:00
x86 remove redundant judgments *running_task != NULL 2024-12-04 22:50:08 +08:00
x86_64 remove redundant judgments *running_task != NULL 2024-12-04 22:50:08 +08:00
xtensa Remove FAR from 32/64bit arch 2024-12-05 22:55:39 +08:00
z16 remove redundant judgments *running_task != NULL 2024-12-04 22:50:08 +08:00
z80 remove redundant judgments *running_task != NULL 2024-12-04 22:50:08 +08:00
CMakeLists.txt arch/z80: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
Kconfig nuttx/arch: remove the custom board check in up_testset implementation 2024-11-28 15:06:57 +08:00