Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions ports/cortex_r5/ac5/src/tx_thread_context_restore.s
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
;/***************************************************************************
; * Copyright (c) 2024 Microsoft Corporation
; * Copyright (c) 2026 Eclipse ThreadX contributors
; *
; * This program and the accompanying materials are made available under the
; * terms of the MIT License which is available at
; * https://opensource.org/licenses/MIT.
; *
; * SPDX-License-Identifier: MIT
; **************************************************************************/
; Portions of this file were generated with AI assistance.
;
;
;/**************************************************************************/
Expand Down Expand Up @@ -47,7 +49,7 @@ SVC_MODE EQU 0x93 ; SVC mode
IMPORT _tx_timer_time_slice
IMPORT _tx_thread_schedule
IMPORT _tx_thread_preempt_disable
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY :LOR: :DEF:TX_EXECUTION_PROFILE_ENABLE
IMPORT _tx_execution_isr_exit
ENDIF
;
Expand Down Expand Up @@ -101,7 +103,7 @@ _tx_thread_context_restore
CPSID i ; Disable IRQ interrupts
ENDIF

IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY :LOR: :DEF:TX_EXECUTION_PROFILE_ENABLE
;
; /* Call the ISR exit function to indicate an ISR is complete. */
;
Expand Down Expand Up @@ -245,4 +247,3 @@ __tx_thread_idle_system_restore
;}
;
END

11 changes: 6 additions & 5 deletions ports/cortex_r5/ac5/src/tx_thread_context_save.s
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
;/***************************************************************************
; * Copyright (c) 2024 Microsoft Corporation
; * Copyright (c) 2026 Eclipse ThreadX contributors
; *
; * This program and the accompanying materials are made available under the
; * terms of the MIT License which is available at
; * https://opensource.org/licenses/MIT.
; *
; * SPDX-License-Identifier: MIT
; **************************************************************************/
; Portions of this file were generated with AI assistance.
;
;
;/**************************************************************************/
Expand All @@ -32,7 +34,7 @@
IMPORT _tx_thread_system_state
IMPORT _tx_thread_current_ptr
IMPORT __tx_irq_processing_return
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY :LOR: :DEF:TX_EXECUTION_PROFILE_ENABLE
IMPORT _tx_execution_isr_enter
ENDIF
;
Expand Down Expand Up @@ -109,7 +111,7 @@ _tx_thread_context_save
;
MOV r10, #0 ; Clear stack limit

IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY :LOR: :DEF:TX_EXECUTION_PROFILE_ENABLE
;
; /* Call the ISR enter function to indicate an ISR is executing. */
;
Expand Down Expand Up @@ -149,7 +151,7 @@ __tx_thread_not_nested_save
;
MOV r10, #0 ; Clear stack limit

IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY :LOR: :DEF:TX_EXECUTION_PROFILE_ENABLE
;
; /* Call the ISR enter function to indicate an ISR is executing. */
;
Expand All @@ -173,7 +175,7 @@ __tx_thread_idle_system_save
;
MOV r10, #0 ; Clear stack limit

IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY :LOR: :DEF:TX_EXECUTION_PROFILE_ENABLE
;
; /* Call the ISR enter function to indicate an ISR is executing. */
;
Expand All @@ -189,4 +191,3 @@ __tx_thread_idle_system_save
;}
;
END

7 changes: 4 additions & 3 deletions ports/cortex_r5/ac5/src/tx_thread_fiq_context_restore.s
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
;/***************************************************************************
; * Copyright (c) 2024 Microsoft Corporation
; * Copyright (c) 2026 Eclipse ThreadX contributors
; *
; * This program and the accompanying materials are made available under the
; * terms of the MIT License which is available at
; * https://opensource.org/licenses/MIT.
; *
; * SPDX-License-Identifier: MIT
; **************************************************************************/
; Portions of this file were generated with AI assistance.
;
;
;/**************************************************************************/
Expand Down Expand Up @@ -43,7 +45,7 @@ IRQ_MODE_BITS EQU 0x12 ; IRQ mode bits
IMPORT _tx_timer_time_slice
IMPORT _tx_thread_schedule
IMPORT _tx_thread_preempt_disable
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY :LOR: :DEF:TX_EXECUTION_PROFILE_ENABLE
IMPORT _tx_execution_isr_exit
ENDIF
;
Expand Down Expand Up @@ -93,7 +95,7 @@ _tx_thread_fiq_context_restore
;
CPSID if ; Disable IRQ and FIQ interrupts

IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY :LOR: :DEF:TX_EXECUTION_PROFILE_ENABLE
;
; /* Call the ISR exit function to indicate an ISR is complete. */
;
Expand Down Expand Up @@ -235,4 +237,3 @@ __tx_thread_fiq_idle_system_restore
;}
;
END

11 changes: 6 additions & 5 deletions ports/cortex_r5/ac5/src/tx_thread_fiq_context_save.s
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
;/***************************************************************************
; * Copyright (c) 2024 Microsoft Corporation
; * Copyright (c) 2026 Eclipse ThreadX contributors
; *
; * This program and the accompanying materials are made available under the
; * terms of the MIT License which is available at
; * https://opensource.org/licenses/MIT.
; *
; * SPDX-License-Identifier: MIT
; **************************************************************************/
; Portions of this file were generated with AI assistance.
;
;
;/**************************************************************************/
Expand All @@ -32,7 +34,7 @@
IMPORT _tx_thread_system_state
IMPORT _tx_thread_current_ptr
IMPORT __tx_fiq_processing_return
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY :LOR: :DEF:TX_EXECUTION_PROFILE_ENABLE
IMPORT _tx_execution_isr_enter
ENDIF
;
Expand Down Expand Up @@ -106,7 +108,7 @@ _tx_thread_fiq_context_save
;
MOV r10, #0 ; Clear stack limit

IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY :LOR: :DEF:TX_EXECUTION_PROFILE_ENABLE
;
; /* Call the ISR enter function to indicate an ISR is executing. */
;
Expand Down Expand Up @@ -150,7 +152,7 @@ __tx_thread_fiq_not_nested_save
;
MOV r10, #0 ; Clear stack limit

IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY :LOR: :DEF:TX_EXECUTION_PROFILE_ENABLE
;
; /* Call the ISR enter function to indicate an ISR is executing. */
;
Expand All @@ -169,7 +171,7 @@ __tx_thread_fiq_idle_system_save
;
; /* Interrupt occurred in the scheduling loop. */
;
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY :LOR: :DEF:TX_EXECUTION_PROFILE_ENABLE
;
; /* Call the ISR enter function to indicate an ISR is executing. */
;
Expand All @@ -193,4 +195,3 @@ __tx_thread_fiq_idle_system_save
;}
;
END

7 changes: 4 additions & 3 deletions ports/cortex_r5/ac5/src/tx_thread_schedule.s
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
;/***************************************************************************
; * Copyright (c) 2024 Microsoft Corporation
; * Copyright (c) 2026 Eclipse ThreadX contributors
; *
; * This program and the accompanying materials are made available under the
; * terms of the MIT License which is available at
; * https://opensource.org/licenses/MIT.
; *
; * SPDX-License-Identifier: MIT
; **************************************************************************/
; Portions of this file were generated with AI assistance.
;
;
;/**************************************************************************/
Expand All @@ -33,7 +35,7 @@
IMPORT _tx_thread_execute_ptr
IMPORT _tx_thread_current_ptr
IMPORT _tx_timer_time_slice
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY :LOR: :DEF:TX_EXECUTION_PROFILE_ENABLE
IMPORT _tx_execution_thread_enter
ENDIF
;
Expand Down Expand Up @@ -136,7 +138,7 @@ __tx_thread_schedule_loop
; /* Switch to the thread's stack. */
; sp = _tx_thread_execute_ptr -> tx_thread_stack_ptr;
;
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY :LOR: :DEF:TX_EXECUTION_PROFILE_ENABLE
;
; /* Call the thread entry function to indicate the thread is executing. */
;
Expand Down Expand Up @@ -223,4 +225,3 @@ __tx_no_thread_to_disable
ENDIF

END

7 changes: 4 additions & 3 deletions ports/cortex_r5/ac5/src/tx_thread_system_return.s
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
;/***************************************************************************
; * Copyright (c) 2024 Microsoft Corporation
; * Copyright (c) 2026 Eclipse ThreadX contributors
; *
; * This program and the accompanying materials are made available under the
; * terms of the MIT License which is available at
; * https://opensource.org/licenses/MIT.
; *
; * SPDX-License-Identifier: MIT
; **************************************************************************/
; Portions of this file were generated with AI assistance.
;
;
;/**************************************************************************/
Expand All @@ -32,7 +34,7 @@
IMPORT _tx_thread_current_ptr
IMPORT _tx_timer_time_slice
IMPORT _tx_thread_schedule
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY :LOR: :DEF:TX_EXECUTION_PROFILE_ENABLE
IMPORT _tx_execution_thread_exit
ENDIF
;
Expand Down Expand Up @@ -106,7 +108,7 @@ _tx_skip_solicited_vfp_save
STMDB sp!, {r0-r1} ; Save type and CPSR
;
;
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY :LOR: :DEF:TX_EXECUTION_PROFILE_ENABLE
;
; /* Call the thread exit function to indicate the thread is no longer executing. */
;
Expand Down Expand Up @@ -148,4 +150,3 @@ __tx_thread_dont_save_ts
;
;}
END

11 changes: 6 additions & 5 deletions ports/cortex_r5/ac5/src/tx_thread_vectored_context_save.s
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
;/***************************************************************************
; * Copyright (c) 2024 Microsoft Corporation
; * Copyright (c) 2026 Eclipse ThreadX contributors
; *
; * This program and the accompanying materials are made available under the
; * terms of the MIT License which is available at
; * https://opensource.org/licenses/MIT.
; *
; * SPDX-License-Identifier: MIT
; **************************************************************************/
; Portions of this file were generated with AI assistance.
;
;
;/**************************************************************************/
Expand All @@ -31,7 +33,7 @@
;
IMPORT _tx_thread_system_state
IMPORT _tx_thread_current_ptr
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY :LOR: :DEF:TX_EXECUTION_PROFILE_ENABLE
IMPORT _tx_execution_isr_enter
ENDIF
;
Expand Down Expand Up @@ -102,7 +104,7 @@ _tx_thread_vectored_context_save
;
MOV r10, #0 ; Clear stack limit

IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY :LOR: :DEF:TX_EXECUTION_PROFILE_ENABLE
;
; /* Call the ISR enter function to indicate an ISR is executing. */
;
Expand Down Expand Up @@ -142,7 +144,7 @@ __tx_thread_not_nested_save
;
MOV r10, #0 ; Clear stack limit

IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY :LOR: :DEF:TX_EXECUTION_PROFILE_ENABLE
;
; /* Call the ISR enter function to indicate an ISR is executing. */
;
Expand Down Expand Up @@ -170,7 +172,7 @@ __tx_thread_idle_system_save
;
MOV r10, #0 ; Clear stack limit

IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY
IF :DEF:TX_ENABLE_EXECUTION_CHANGE_NOTIFY :LOR: :DEF:TX_EXECUTION_PROFILE_ENABLE
;
; /* Call the ISR enter function to indicate an ISR is executing. */
;
Expand All @@ -190,4 +192,3 @@ __tx_thread_idle_system_save
;}
;
END

5 changes: 3 additions & 2 deletions ports/cortex_r5/ac6/src/tx_thread_context_restore.S
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
@/***************************************************************************
@ * Copyright (c) 2024 Microsoft Corporation
@ * Copyright (c) 2026 Eclipse ThreadX contributors
@ *
@ * This program and the accompanying materials are made available under the
@ * terms of the MIT License which is available at
@ * https://opensource.org/licenses/MIT.
@ *
@ * SPDX-License-Identifier: MIT
@ **************************************************************************/
@ Portions of this file were generated with AI assistance.
@
@
@/**************************************************************************/
Expand Down Expand Up @@ -101,7 +103,7 @@ _tx_thread_context_restore:
CPSID i @ Disable IRQ interrupts
#endif

#ifdef TX_ENABLE_EXECUTION_CHANGE_NOTIFY
#if defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)
@
@ /* Call the ISR exit function to indicate an ISR is complete. */
@
Expand Down Expand Up @@ -245,4 +247,3 @@ __tx_thread_idle_system_restore:
@}



9 changes: 5 additions & 4 deletions ports/cortex_r5/ac6/src/tx_thread_context_save.S
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
@/***************************************************************************
@ * Copyright (c) 2024 Microsoft Corporation
@ * Copyright (c) 2026 Eclipse ThreadX contributors
@ *
@ * This program and the accompanying materials are made available under the
@ * terms of the MIT License which is available at
@ * https://opensource.org/licenses/MIT.
@ *
@ * SPDX-License-Identifier: MIT
@ **************************************************************************/
@ Portions of this file were generated with AI assistance.
@
@
@/**************************************************************************/
Expand Down Expand Up @@ -112,7 +114,7 @@ _tx_thread_context_save:
@
MOV r10, #0 @ Clear stack limit

#ifdef TX_ENABLE_EXECUTION_CHANGE_NOTIFY
#if defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)
@
@ /* Call the ISR enter function to indicate an ISR is executing. */
@
Expand Down Expand Up @@ -152,7 +154,7 @@ __tx_thread_not_nested_save:
@
MOV r10, #0 @ Clear stack limit

#ifdef TX_ENABLE_EXECUTION_CHANGE_NOTIFY
#if defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)
@
@ /* Call the ISR enter function to indicate an ISR is executing. */
@
Expand All @@ -176,7 +178,7 @@ __tx_thread_idle_system_save:
@
MOV r10, #0 @ Clear stack limit

#ifdef TX_ENABLE_EXECUTION_CHANGE_NOTIFY
#if defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE)
@
@ /* Call the ISR enter function to indicate an ISR is executing. */
@
Expand All @@ -192,4 +194,3 @@ __tx_thread_idle_system_save:
@}



Loading