nuttx/arch
guoshengyuan1 fac76746ea arch/arm: Fix TLS initialization to account for padding between sections
The TLS initialization logic needs to be updated to match the modified
linker script section definitions. The previous implementation assumed
that _END_TDATA and _START_TBSS were contiguous, but there may be
padding between these sections for alignment purposes.

This commit updates up_tls_initialize() to explicitly account for the
padding gap between _END_TDATA and _START_TBSS when zeroing the .tbss
section. The size calculation in up_tls_size() is also updated to use
_END_TBSS instead of the previous _END_TXXX definition to match the
current linker script layout.

Changes:
- Calculate padding gap: (_START_TBSS - _END_TDATA)
- Zero .tbss at correct offset accounting for padding
- Update size calculation to use proper section boundaries

Signed-off-by: guoshengyuan1 <guoshengyuan1@xiaomi.com>
2026-01-09 21:48:28 +08:00
..
arm arch/arm: Fix TLS initialization to account for padding between sections 2026-01-09 21:48:28 +08:00
arm64 barrier: add UP_RMB UP_WMB 2025-12-22 10:22:06 -03:00
avr arch/avr/src/avrdx: remove unused variable and update comment 2026-01-08 10:17:33 +08:00
ceva barrier: add UP_RMB UP_WMB 2025-12-22 10:22:06 -03:00
dummy
hc arch/udelay: Make common, weak definition of up_*delay functions 2025-09-29 09:22:56 +08:00
mips sched:use tcb_s inside of task_tcb_s , remove all cast 2025-12-22 17:55:45 +08:00
misoc arch/Toolchain.defs: use _start entry 2025-12-16 13:07:37 -03:00
or1k arch/Toolchain.defs: use _start entry 2025-12-16 13:07:37 -03:00
renesas renesas/rx65n: Replace spinlock/sched_lock with spin_lock_irqsave_nopreempt 2025-11-04 22:46:15 +08:00
risc-v risc-v/litex: Update docs for vexriscv invalidate and no-op flush. 2026-01-08 09:21:50 +08:00
sim driver/net: replace net_lock with netdev_lock 2026-01-06 16:08:30 +08:00
sparc arch/Toolchain.defs: use _start entry 2025-12-16 13:07:37 -03:00
tricore barrier: add UP_RMB UP_WMB 2025-12-22 10:22:06 -03:00
x86 arch/Toolchain.defs: use _start entry 2025-12-16 13:07:37 -03:00
x86_64 barrier: add UP_RMB UP_WMB 2025-12-22 10:22:06 -03:00
xtensa arch/xtensa: Fix Kconfig style 2026-01-06 06:35:08 +08:00
z16 arch/udelay: Make common, weak definition of up_*delay functions 2025-09-29 09:22:56 +08:00
z80 arch/Toolchain.defs: use _start entry 2025-12-16 13:07:37 -03:00
CMakeLists.txt arch/z80: migrate to SPDX identifier 2024-12-02 17:23:25 +08:00
Kconfig arch:use ARCH_64BIT to mark arch is support 64bit 2025-12-18 22:05:12 +08:00