diff options
| author | Frédéric Desbiens <[email protected]> | 2026-09-09 17:17:37 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-09-09 17:17:37 -0400 |
| commit | 7f6e4962338eaf6491a120f96175b19d70d4eb48 (patch) | |
| tree | 831522164b07cb07ffc8f8fad4984c4e7162f1c5 /common_modules/module_manager/utilities/module_binary_to_c_array.c | |
| parent | a8c84593ddd7bc2f80c8abf605deb08729ed00b3 (diff) | |
Added the missing VFP enable field to the Cortex-R5/AC5 thread control block, which VFP builds were writing over the FileX pointer (#715)
The Cortex-R5/AC5 port defines TX_THREAD_EXTENSION_2 as empty while its
assembly reads and writes the per-thread VFP enable flag at [thread, #144].
With TX_ENABLE_VFP_SUPPORT that offset lands on tx_thread_filex_ptr, so
tx_thread_vfp_enable corrupted the FileX pointer and lazy save/restore
tested an unrelated value.
Defined TX_THREAD_EXTENSION_2 as ULONG tx_thread_vfp_enable, matching the
Armv7-A ports and the Cortex-R4/R5 GNU and AC6 ports fixed earlier, and
added tx_port_offset_check.c so a future layout change breaks the build
instead of silently retargeting the accesses. The offset was measured at
144 for this port and asserted.
Fixes #382
Assisted-by: Copilot (Opus 5) <[email protected]>
Diffstat (limited to 'common_modules/module_manager/utilities/module_binary_to_c_array.c')
0 files changed, 0 insertions, 0 deletions
