mirror of
https://github.com/eclipse-threadx/threadx.git
synced 2026-10-06 06:59:08 +08:00
Updated Cortex-R4 Thumb bit immediates (#565)
Use explicit immediate syntax when testing the Thumb bit in AC6 Cortex-R4 stack build assembly. Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
co-authored by
Codex
parent
3fcfb4e4c9
commit
a33f6efc48
@@ -8,6 +8,7 @@
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
**************************************************************************/
|
||||
// Some portions generated by Codex (GPT-5).
|
||||
|
||||
|
||||
/**************************************************************************/
|
||||
@@ -143,7 +144,7 @@ _tx_thread_stack_build:
|
||||
MRS r3, CPSR // Pickup CPSR
|
||||
BIC r3, r3, #CPSR_MASK // Mask mode bits of CPSR
|
||||
ORR r3, r3, #SVC_MODE // Build CPSR, SVC mode, interrupts enabled
|
||||
TST r1, 1 // Test if Thumb bit is set in entry function address
|
||||
TST r1, #1 // Test if Thumb bit is set in entry function address
|
||||
ITE NE
|
||||
ORRNE r3, r3, #THUMB_BIT // Yes, set the Thumb bit
|
||||
BICEQ r3, r3, #THUMB_BIT // No, clear the Thumb bit
|
||||
|
||||
Reference in New Issue
Block a user