mirror of
https://github.com/eclipse-threadx/threadx.git
synced 2026-10-06 06:59:08 +08:00
Fixed the missing immediate prefix on MOV in Cortex-M schedulers (#693)
The BASEPRI-masking path in tx_thread_schedule wrote "MOV r0, 0" rather than "MOV r0, #0". UAL requires the "#" prefix on an immediate operand. GNU as and the LLVM-based assemblers accept the unprefixed form and emit the intended encoding, but stricter assemblers reject it outright, so the affected ports could not be built with those toolchains. The GNU and AC6 sources had already been corrected; this brings the IAR and AC5 sources into line. Verified that both spellings assemble to the same Thumb-2 encoding (f04f 0000), so this is a source-correctness fix with no change in generated code or runtime behaviour. Covers 31 occurrences across the Cortex-M3, M4, M7, M33, M52, M55 and M85 ports, their module manager counterparts, and the shared ARMv7-M and ARMv8-M architecture sources. Fixes #461 Assisted-by: Copilot (Opus 5) <noreply@github.com>
This commit is contained in:
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -132,7 +134,7 @@ __tx_ts_handler
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -132,7 +134,7 @@ __tx_ts_handler:
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -129,7 +131,7 @@ __tx_ts_handler:
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -132,7 +134,7 @@ __tx_ts_handler
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -132,7 +134,7 @@ __tx_ts_handler:
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -129,7 +131,7 @@ __tx_ts_handler:
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -129,7 +131,7 @@ __tx_ts_handler:
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -132,7 +134,7 @@ __tx_ts_handler
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -132,7 +134,7 @@ __tx_ts_handler:
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -129,7 +131,7 @@ __tx_ts_handler:
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -132,7 +134,7 @@ __tx_ts_handler
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -132,7 +134,7 @@ __tx_ts_handler:
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -206,7 +208,7 @@ MemManage_Handler
|
|||||||
STR r1, [r0] // Store ICSR
|
STR r1, [r0] // Store ICSR
|
||||||
DSB // Wait for memory access to complete
|
DSB // Wait for memory access to complete
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
@@ -238,7 +240,7 @@ __tx_ts_handler
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -207,7 +209,7 @@ UsageFault_Handler:
|
|||||||
STR r1, [r0] // Store ICSR
|
STR r1, [r0] // Store ICSR
|
||||||
DSB // Wait for memory access to complete
|
DSB // Wait for memory access to complete
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
@@ -239,7 +241,7 @@ __tx_ts_handler:
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -129,7 +131,7 @@ __tx_ts_handler:
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -206,7 +208,7 @@ MemManage_Handler
|
|||||||
STR r1, [r0] // Store ICSR
|
STR r1, [r0] // Store ICSR
|
||||||
DSB // Wait for memory access to complete
|
DSB // Wait for memory access to complete
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
@@ -238,7 +240,7 @@ __tx_ts_handler
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -207,7 +209,7 @@ UsageFault_Handler:
|
|||||||
STR r1, [r0] // Store ICSR
|
STR r1, [r0] // Store ICSR
|
||||||
DSB // Wait for memory access to complete
|
DSB // Wait for memory access to complete
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
@@ -239,7 +241,7 @@ __tx_ts_handler:
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -208,7 +210,7 @@ BusFault_Handler:
|
|||||||
STR r1, [r0] // Store ICSR
|
STR r1, [r0] // Store ICSR
|
||||||
DSB // Wait for memory access to complete
|
DSB // Wait for memory access to complete
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
@@ -239,7 +241,7 @@ __tx_ts_handler:
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -206,7 +208,7 @@ MemManage_Handler
|
|||||||
STR r1, [r0] // Store ICSR
|
STR r1, [r0] // Store ICSR
|
||||||
DSB // Wait for memory access to complete
|
DSB // Wait for memory access to complete
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
@@ -238,7 +240,7 @@ __tx_ts_handler
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -207,7 +209,7 @@ UsageFault_Handler:
|
|||||||
STR r1, [r0] // Store ICSR
|
STR r1, [r0] // Store ICSR
|
||||||
DSB // Wait for memory access to complete
|
DSB // Wait for memory access to complete
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
@@ -239,7 +241,7 @@ __tx_ts_handler:
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -206,7 +208,7 @@ MemManage_Handler
|
|||||||
STR r1, [r0] // Store ICSR
|
STR r1, [r0] // Store ICSR
|
||||||
DSB // Wait for memory access to complete
|
DSB // Wait for memory access to complete
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
@@ -238,7 +240,7 @@ __tx_ts_handler
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
@@ -9,6 +9,8 @@
|
|||||||
* SPDX-License-Identifier: MIT
|
* SPDX-License-Identifier: MIT
|
||||||
**************************************************************************/
|
**************************************************************************/
|
||||||
|
|
||||||
|
// Some portions generated by Copilot (Opus 5).
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
/**************************************************************************/
|
/**************************************************************************/
|
||||||
@@ -207,7 +209,7 @@ UsageFault_Handler:
|
|||||||
STR r1, [r0] // Store ICSR
|
STR r1, [r0] // Store ICSR
|
||||||
DSB // Wait for memory access to complete
|
DSB // Wait for memory access to complete
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
@@ -239,7 +241,7 @@ __tx_ts_handler:
|
|||||||
BL _tx_execution_thread_exit // Call the thread exit function
|
BL _tx_execution_thread_exit // Call the thread exit function
|
||||||
POP {r0, lr} // Recover LR
|
POP {r0, lr} // Recover LR
|
||||||
#ifdef TX_PORT_USE_BASEPRI
|
#ifdef TX_PORT_USE_BASEPRI
|
||||||
MOV r0, 0 // Disable BASEPRI masking (enable interrupts)
|
MOV r0, #0 // Disable BASEPRI masking (enable interrupts)
|
||||||
MSR BASEPRI, r0
|
MSR BASEPRI, r0
|
||||||
#else
|
#else
|
||||||
CPSIE i // Enable interrupts
|
CPSIE i // Enable interrupts
|
||||||
|
|||||||
Reference in New Issue
Block a user