walnux/arch
chao an 20f45f907f arm/armv7: update percpu task only for co-processor
fix smp crash on sabre-6quad/smp, regression from:

|commit 1e49cb4828
|Author: hujun5 <hujun5@xiaomi.com>
|Date:   Thu Dec 5 16:58:17 2024 +0800
|
|    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>

Signed-off-by: chao an <anchao.archer@bytedance.com>
2025-01-27 23:35:07 +08:00
..
arm arm/armv7: update percpu task only for co-processor 2025-01-27 23:35:07 +08:00
arm64 zynq-mpsoc: add support for pll 2025-01-27 10:13:30 +08:00
avr Because sched_lock is now called in spin_lock_irqsave, there is no need to call it explicitly. 2025-01-23 20:43:51 +08:00
ceva arch: set (*running_task)->xcp.regs to NULL when exit from irq/exception 2025-01-22 23:52:17 +08:00
dummy
hc Use small lock to protect resources related to ethernet. 2025-01-24 12:13:28 +08:00
mips Use small lock to protect resources related to ethernet. 2025-01-24 12:13:28 +08:00
misoc arch: up_getusrsp change to inline and implement in irq.h 2025-01-06 23:03:05 +08:00
or1k Use small lock to protect resources related to irq in arch avr, hc, mips and or1k. 2025-01-22 15:27:30 +08:00
renesas Because sched_lock is now called in spin_lock_irqsave, there is no need to call it explicitly. 2025-01-23 20:43:51 +08:00
risc-v Use small lock to protect resources related to ethernet. 2025-01-24 12:13:28 +08:00
sim Because sched_lock is now called in spin_lock_irqsave, there is no need to call it explicitly. 2025-01-23 20:43:51 +08:00
sparc Use small lock to protect resources related to irq in arch avr, hc, mips and or1k. 2025-01-22 15:27:30 +08:00
tricore arch: set (*running_task)->xcp.regs to NULL when exit from irq/exception 2025-01-22 23:52:17 +08:00
x86 x86/Toolchain.defs: Add LLVM target definitions 2025-01-27 02:28:29 +08:00
x86_64 tools/x86_64: Add LLVM target definitions 2025-01-27 02:28:29 +08:00
xtensa Use small lock to protect resources related to i2c. 2025-01-24 01:38:16 +08:00
z16 arch: up_getusrsp change to inline and implement in irq.h 2025-01-06 23:03:05 +08:00
z80 arch: up_getusrsp change to inline and implement in irq.h 2025-01-06 23:03:05 +08:00
CMakeLists.txt arch/z80: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
Kconfig arch/Kconfig: allow FLASH config for non-MMU chips 2025-01-17 16:38:17 +08:00