summaryrefslogtreecommitdiff
path: root/ports/arc_hs/metaware/src
diff options
context:
space:
mode:
Diffstat (limited to 'ports/arc_hs/metaware/src')
-rw-r--r--ports/arc_hs/metaware/src/tx_initialize_fast_interrupt_setup.s61
-rw-r--r--ports/arc_hs/metaware/src/tx_thread_context_fast_restore.s79
-rw-r--r--ports/arc_hs/metaware/src/tx_thread_context_fast_save.s77
-rw-r--r--ports/arc_hs/metaware/src/tx_thread_context_restore.s21
-rw-r--r--ports/arc_hs/metaware/src/tx_thread_context_save.s18
-rw-r--r--ports/arc_hs/metaware/src/tx_thread_interrupt_control.s17
-rw-r--r--ports/arc_hs/metaware/src/tx_thread_register_bank_assign.s63
-rw-r--r--ports/arc_hs/metaware/src/tx_thread_schedule.s30
-rw-r--r--ports/arc_hs/metaware/src/tx_thread_stack_build.s17
-rw-r--r--ports/arc_hs/metaware/src/tx_thread_system_return.s22
-rw-r--r--ports/arc_hs/metaware/src/tx_timer_interrupt.s23
11 files changed, 152 insertions, 276 deletions
diff --git a/ports/arc_hs/metaware/src/tx_initialize_fast_interrupt_setup.s b/ports/arc_hs/metaware/src/tx_initialize_fast_interrupt_setup.s
index c4aa7114..c757508b 100644
--- a/ports/arc_hs/metaware/src/tx_initialize_fast_interrupt_setup.s
+++ b/ports/arc_hs/metaware/src/tx_initialize_fast_interrupt_setup.s
@@ -1,18 +1,18 @@
;/***************************************************************************
-; * Copyright (c) 2024 Microsoft Corporation
-; *
+; * Copyright (c) 2024 Microsoft Corporation
+; *
; * 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
; **************************************************************************/
;
;
;/**************************************************************************/
;/**************************************************************************/
-;/** */
-;/** ThreadX Component */
+;/** */
+;/** ThreadX Component */
;/** */
;/** Initialize */
;/** */
@@ -22,10 +22,10 @@
#include "tx_user.h"
#endif
-;/**************************************************************************/
-;/* */
-;/* FUNCTION RELEASE */
-;/* */
+;/**************************************************************************/
+;/* */
+;/* FUNCTION RELEASE */
+;/* */
;/* _tx_initialize_fast_interrupt_setup ARC_HS/MetaWare */
;/* 6.2.1 */
;/* AUTHOR */
@@ -33,35 +33,26 @@
;/* William E. Lamie, Microsoft Corporation */
;/* */
;/* DESCRIPTION */
-;/* */
-;/* This function initializes register bank 1 for fast interrupt use. */
-;/* The initialization includes setting the stack pointer to the value */
-;/* supplied by the caller. */
-;/* */
-;/* INPUT */
-;/* */
+;/* */
+;/* This function initializes register bank 1 for fast interrupt use. */
+;/* The initialization includes setting the stack pointer to the value */
+;/* supplied by the caller. */
+;/* */
+;/* INPUT */
+;/* */
;/* stack_ptr Pointer to stack for bank 1 */
-;/* */
-;/* OUTPUT */
-;/* */
+;/* */
+;/* OUTPUT */
+;/* */
;/* None */
-;/* */
-;/* CALLS */
-;/* */
+;/* */
+;/* CALLS */
+;/* */
;/* None */
-;/* */
-;/* CALLED BY */
-;/* */
-;/* Application */
-;/* */
-;/* RELEASE HISTORY */
-;/* */
-;/* DATE NAME DESCRIPTION */
;/* */
-;/* 09-30-2020 William E. Lamie Initial Version 6.1 */
-;/* 03-08-2023 Cindy Deng Modified comment(s), added */
-;/* #include tx_user.h, */
-;/* resulting in version 6.2.1 */
+;/* CALLED BY */
+;/* */
+;/* Application */
;/* */
;/**************************************************************************/
;VOID _tx_initialize_fast_interrupt_setup(VOID *stack_ptr)
@@ -71,7 +62,7 @@
_tx_initialize_fast_interrupt_setup:
;
; /* Assume this routine is being called from initialization, with interrupts
-; disabled and from register bank 0. Also assume that the stack pointer
+; disabled and from register bank 0. Also assume that the stack pointer
; input is valid, i.e., there is no error checking on the validity of
; register_bank. */
;
diff --git a/ports/arc_hs/metaware/src/tx_thread_context_fast_restore.s b/ports/arc_hs/metaware/src/tx_thread_context_fast_restore.s
index 089f13de..d2f5284c 100644
--- a/ports/arc_hs/metaware/src/tx_thread_context_fast_restore.s
+++ b/ports/arc_hs/metaware/src/tx_thread_context_fast_restore.s
@@ -1,18 +1,18 @@
;/***************************************************************************
-; * Copyright (c) 2024 Microsoft Corporation
-; *
+; * Copyright (c) 2024 Microsoft Corporation
+; *
; * 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
; **************************************************************************/
;
;
;/**************************************************************************/
;/**************************************************************************/
-;/** */
-;/** ThreadX Component */
+;/** */
+;/** ThreadX Component */
;/** */
;/** Thread */
;/** */
@@ -23,11 +23,11 @@
#endif
.equ BTA, 0x412
-
-;/**************************************************************************/
-;/* */
-;/* FUNCTION RELEASE */
-;/* */
+
+;/**************************************************************************/
+;/* */
+;/* FUNCTION RELEASE */
+;/* */
;/* _tx_thread_context_fast_restore ARC_HS/MetaWare */
;/* 6.2.1 */
;/* AUTHOR */
@@ -35,43 +35,34 @@
;/* William E. Lamie, Microsoft Corporation */
;/* */
;/* DESCRIPTION */
-;/* */
-;/* This function restores the fast interrupt context, which can be a */
-;/* nesting condition on a non-fast ISR, an idle system restore, a */
-;/* restore of an interrupted thread, and a preemption of an interrupted*/
-;/* thread. */
-;/* */
-;/* INPUT */
-;/* */
-;/* None */
-;/* */
-;/* OUTPUT */
-;/* */
-;/* None */
-;/* */
-;/* CALLS */
-;/* */
-;/* _tx_thread_schedule Thread scheduling routine */
-;/* */
-;/* CALLED BY */
-;/* */
-;/* ISRs Interrupt Service Routines */
-;/* */
-;/* RELEASE HISTORY */
-;/* */
-;/* DATE NAME DESCRIPTION */
;/* */
-;/* 09-30-2020 William E. Lamie Initial Version 6.1 */
-;/* 03-08-2023 Cindy Deng Modified comment(s), added */
-;/* #include tx_user.h, */
-;/* resulting in version 6.2.1 */
+;/* This function restores the fast interrupt context, which can be a */
+;/* nesting condition on a non-fast ISR, an idle system restore, a */
+;/* restore of an interrupted thread, and a preemption of an interrupted*/
+;/* thread. */
+;/* */
+;/* INPUT */
+;/* */
+;/* None */
+;/* */
+;/* OUTPUT */
+;/* */
+;/* None */
+;/* */
+;/* CALLS */
+;/* */
+;/* _tx_thread_schedule Thread scheduling routine */
+;/* */
+;/* CALLED BY */
+;/* */
+;/* ISRs Interrupt Service Routines */
;/* */
;/**************************************************************************/
;VOID _tx_thread_context_fast_restore(VOID)
;{
.global _tx_thread_context_fast_restore
- .type _tx_thread_context_fast_restore, @function
+ .type _tx_thread_context_fast_restore, @function
_tx_thread_context_fast_restore:
;
; /* Note: it is assumed that the stack pointer is in the same position now as
@@ -98,7 +89,7 @@ _tx_thread_context_fast_restore:
;
; /* Interrupts are nested. */
;
-; /* Just recover the saved registers and return to the point of
+; /* Just recover the saved registers and return to the point of
; interrupt. */
;
@@ -160,7 +151,7 @@ __tx_thread_preempt_restore:
st r0, [sp, 132] ; Temporarily save r0
mov r0, 3 ; Build hardware interrupt stack type
st r0, [sp, 0] ; Setup interrupt stack type
-
+
.ifndef TX_DISABLE_LP
lr r0, [LP_START] ; Pickup LP_START
st r0, [sp, 4] ; Save LP_START
@@ -186,7 +177,7 @@ __tx_thread_preempt_restore:
kflag ilink ; Move back to register bank 0
b __tx_preempt_save_done ; Done, finished with preemption save
-__tx_software_interrupt_context:
+__tx_software_interrupt_context:
st ilink, [sp, 0] ; Save ilink (point of interrupt)
st r3, [sp, 4] ; Save status32
mov ilink, sp ; Pass the information back to the other register bank via ilink
@@ -223,7 +214,7 @@ __tx_software_interrupt_context:
st r1, [sp, 128] ; Save r1
st r0, [sp, 132] ; Save r0
st r30, [sp, 136] ; Save r30
-
+
.ifndef TX_DISABLE_LP
lr r10, [LP_START] ; Pickup LP_START
lr r9, [LP_END] ; Pickup LP_END
diff --git a/ports/arc_hs/metaware/src/tx_thread_context_fast_save.s b/ports/arc_hs/metaware/src/tx_thread_context_fast_save.s
index d9a80463..f54176d4 100644
--- a/ports/arc_hs/metaware/src/tx_thread_context_fast_save.s
+++ b/ports/arc_hs/metaware/src/tx_thread_context_fast_save.s
@@ -1,18 +1,18 @@
;/***************************************************************************
-; * Copyright (c) 2024 Microsoft Corporation
-; *
+; * Copyright (c) 2024 Microsoft Corporation
+; *
; * 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
; **************************************************************************/
;
;
;/**************************************************************************/
;/**************************************************************************/
-;/** */
-;/** ThreadX Component */
+;/** */
+;/** ThreadX Component */
;/** */
;/** Thread */
;/** */
@@ -22,10 +22,10 @@
#include "tx_user.h"
#endif
-;/**************************************************************************/
-;/* */
-;/* FUNCTION RELEASE */
-;/* */
+;/**************************************************************************/
+;/* */
+;/* FUNCTION RELEASE */
+;/* */
;/* _tx_thread_context_fast_save ARC_HS/MetaWare */
;/* 6.2.1 */
;/* AUTHOR */
@@ -33,46 +33,37 @@
;/* William E. Lamie, Microsoft Corporation */
;/* */
;/* DESCRIPTION */
-;/* */
-;/* This function saves the context of an executing thread in the */
-;/* beginning of fast interrupt processing. The function assumes that */
-;/* fast interrupts are enabled (priority 0) and multiple register */
-;/* banks are available. In this case, register bank 1 is reserved by */
-;/* hardware for fast interrupts. Additional assumptions include that */
-;/* there will be no nested fast interrupts and the LP_START, LP_END, */
-;/* and LP_COUNT registers are not used in the application's fast */
-;/* interrupt ISR. */
-;/* */
-;/* INPUT */
-;/* */
-;/* None */
-;/* */
-;/* OUTPUT */
-;/* */
-;/* None */
-;/* */
-;/* CALLS */
-;/* */
-;/* None */
-;/* */
-;/* CALLED BY */
-;/* */
-;/* ISRs */
-;/* */
-;/* RELEASE HISTORY */
-;/* */
-;/* DATE NAME DESCRIPTION */
;/* */
-;/* 09-30-2020 William E. Lamie Initial Version 6.1 */
-;/* 03-08-2023 Cindy Deng Modified comment(s), added */
-;/* #include tx_user.h, */
-;/* resulting in version 6.2.1 */
+;/* This function saves the context of an executing thread in the */
+;/* beginning of fast interrupt processing. The function assumes that */
+;/* fast interrupts are enabled (priority 0) and multiple register */
+;/* banks are available. In this case, register bank 1 is reserved by */
+;/* hardware for fast interrupts. Additional assumptions include that */
+;/* there will be no nested fast interrupts and the LP_START, LP_END, */
+;/* and LP_COUNT registers are not used in the application's fast */
+;/* interrupt ISR. */
+;/* */
+;/* INPUT */
+;/* */
+;/* None */
+;/* */
+;/* OUTPUT */
+;/* */
+;/* None */
+;/* */
+;/* CALLS */
+;/* */
+;/* None */
+;/* */
+;/* CALLED BY */
+;/* */
+;/* ISRs */
;/* */
;/**************************************************************************/
;VOID _tx_thread_context_fast_save(VOID)
;{
.global _tx_thread_context_fast_save
- .type _tx_thread_context_fast_save, @function
+ .type _tx_thread_context_fast_save, @function
_tx_thread_context_fast_save:
;
; /* Increment nested interrupt count. */
diff --git a/ports/arc_hs/metaware/src/tx_thread_context_restore.s b/ports/arc_hs/metaware/src/tx_thread_context_restore.s
index 79a786c5..23d675a8 100644
--- a/ports/arc_hs/metaware/src/tx_thread_context_restore.s
+++ b/ports/arc_hs/metaware/src/tx_thread_context_restore.s
@@ -1,10 +1,10 @@
;/***************************************************************************
-; * Copyright (c) 2024 Microsoft Corporation
-; *
+; * Copyright (c) 2024 Microsoft Corporation
+; *
; * 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
; **************************************************************************/
@@ -56,19 +56,6 @@
;/* */
;/* ISRs Interrupt Service Routines */
;/* */
-;/* RELEASE HISTORY */
-;/* */
-;/* DATE NAME DESCRIPTION */
-;/* */
-;/* 09-30-2020 William E. Lamie Initial Version 6.1 */
-;/* 10-15-2021 Andres Mlinar Modified comment(s), and */
-;/* r25/r30 are caller saved, */
-;/* use schedule_reenter, */
-;/* resulting in version 6.1.9 */
-;/* 03-08-2023 Cindy Deng Modified comment(s), added */
-;/* #include tx_user.h, */
-;/* resulting in version 6.2.1 */
-;/* */
;/**************************************************************************/
;VOID _tx_thread_context_restore(VOID)
;{
@@ -249,7 +236,7 @@ __tx_thread_preempt_restore:
b __tx_preempt_save_done ; Done, finished with preemption save
nop
-__tx_software_interrupt_context:
+__tx_software_interrupt_context:
mov r6, 1 ; Build interrupt stack type
st r6, [r7, 0] ; Setup interrupt stack type
st fp, [r7, 24] ; Save fp
diff --git a/ports/arc_hs/metaware/src/tx_thread_context_save.s b/ports/arc_hs/metaware/src/tx_thread_context_save.s
index 9fcc82e6..27ee25b5 100644
--- a/ports/arc_hs/metaware/src/tx_thread_context_save.s
+++ b/ports/arc_hs/metaware/src/tx_thread_context_save.s
@@ -1,10 +1,10 @@
;/***************************************************************************
-; * Copyright (c) 2024 Microsoft Corporation
-; *
+; * Copyright (c) 2024 Microsoft Corporation
+; *
; * 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
; **************************************************************************/
@@ -55,18 +55,6 @@
;/* */
;/* ISRs */
;/* */
-;/* RELEASE HISTORY */
-;/* */
-;/* DATE NAME DESCRIPTION */
-;/* */
-;/* 09-30-2020 William E. Lamie Initial Version 6.1 */
-;/* 10-15-2021 Andres Mlinar Modified comment(s), and */
-;/* r25/r30 are caller saved, */
-;/* resulting in version 6.1.9 */
-;/* 03-08-2023 Cindy Deng Modified comment(s), added */
-;/* #include tx_user.h, */
-;/* resulting in version 6.2.1 */
-;/* */
;/**************************************************************************/
;VOID _tx_thread_context_save(VOID)
;{
diff --git a/ports/arc_hs/metaware/src/tx_thread_interrupt_control.s b/ports/arc_hs/metaware/src/tx_thread_interrupt_control.s
index 9d3dacae..3d18b9a1 100644
--- a/ports/arc_hs/metaware/src/tx_thread_interrupt_control.s
+++ b/ports/arc_hs/metaware/src/tx_thread_interrupt_control.s
@@ -1,10 +1,10 @@
;/***************************************************************************
-; * Copyright (c) 2024 Microsoft Corporation
-; *
+; * Copyright (c) 2024 Microsoft Corporation
+; *
; * 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
; **************************************************************************/
@@ -52,17 +52,6 @@
;/* */
;/* Application Code */
;/* */
-;/* RELEASE HISTORY */
-;/* */
-;/* DATE NAME DESCRIPTION */
-;/* */
-;/* 09-30-2020 William E. Lamie Initial Version 6.1 */
-;/* 04-02-2021 Andres Mlinar Modified comments, */
-;/* resulting in version 6.1.6 */
-;/* 03-08-2023 Cindy Deng Modified comment(s), added */
-;/* #include tx_user.h, */
-;/* resulting in version 6.2.1 */
-;/* */
;/**************************************************************************/
;UINT _tx_thread_interrupt_control(UINT new_posture)
;{
diff --git a/ports/arc_hs/metaware/src/tx_thread_register_bank_assign.s b/ports/arc_hs/metaware/src/tx_thread_register_bank_assign.s
index 7b9d1114..f9876c89 100644
--- a/ports/arc_hs/metaware/src/tx_thread_register_bank_assign.s
+++ b/ports/arc_hs/metaware/src/tx_thread_register_bank_assign.s
@@ -1,18 +1,18 @@
;/***************************************************************************
-; * Copyright (c) 2024 Microsoft Corporation
-; *
+; * Copyright (c) 2024 Microsoft Corporation
+; *
; * 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
; **************************************************************************/
;
;
;/**************************************************************************/
;/**************************************************************************/
-;/** */
-;/** ThreadX Component */
+;/** */
+;/** ThreadX Component */
;/** */
;/** Thread */
;/** */
@@ -22,10 +22,10 @@
#include "tx_user.h"
#endif
-;/**************************************************************************/
-;/* */
-;/* FUNCTION RELEASE */
-;/* */
+;/**************************************************************************/
+;/* */
+;/* FUNCTION RELEASE */
+;/* */
;/* _tx_thread_register_bank_assign ARC_HS/MetaWare */
;/* 6.2.1 */
;/* AUTHOR */
@@ -33,37 +33,28 @@
;/* William E. Lamie, Microsoft Corporation */
;/* */
;/* DESCRIPTION */
-;/* */
+;/* */
;/* This function builds a stack frame on the supplied thread's stack. */
;/* The stack frame results in a fake interrupt return to the supplied */
-;/* function pointer. */
-;/* */
-;/* INPUT */
-;/* */
+;/* function pointer. */
+;/* */
+;/* INPUT */
+;/* */
;/* thread_ptr Pointer to thread control blk */
;/* register_bank Register bank number */
-;/* (1 through max-1) */
-;/* */
-;/* OUTPUT */
-;/* */
+;/* (1 through max-1) */
+;/* */
+;/* OUTPUT */
+;/* */
;/* None */
-;/* */
-;/* CALLS */
-;/* */
+;/* */
+;/* CALLS */
+;/* */
;/* None */
-;/* */
-;/* CALLED BY */
-;/* */
-;/* Application */
-;/* */
-;/* RELEASE HISTORY */
-;/* */
-;/* DATE NAME DESCRIPTION */
;/* */
-;/* 09-30-2020 William E. Lamie Initial Version 6.1 */
-;/* 03-08-2023 Cindy Deng Modified comment(s), added */
-;/* #include tx_user.h, */
-;/* resulting in version 6.2.1 */
+;/* CALLED BY */
+;/* */
+;/* Application */
;/* */
;/**************************************************************************/
;VOID _tx_thread_register_bank_assign(VOID *thread_ptr, UINT register_bank)
@@ -75,9 +66,9 @@ _tx_thread_register_bank_assign:
; /* Assume this routine is being called from initialization, with interrupts
; disabled and from register bank 0. Also assume that the thread pointer and
; register bank input is valid, i.e., there is no error checking on the validity of
-; the thread pointer or the register_bank.
+; the thread pointer or the register_bank.
;
-; It is worth noting that if fast interrupts are being used, register bank 1
+; It is worth noting that if fast interrupts are being used, register bank 1
; is reserved for the fast interrupt processing, so thread register bank assignments
; should begin at bank 2. */
;
@@ -101,7 +92,7 @@ _tx_thread_register_bank_assign:
bclr r3, r3, 17 ;
bclr r3, r3, 18 ;
kflag r3 ; Move back to register bank 0
- mov r5, 3 ; Build type for hardware interrupt context
+ mov r5, 3 ; Build type for hardware interrupt context
j_s.d [blink] ; Return to caller
st r5, [r4, 0] ; Set stack frame type
;}
diff --git a/ports/arc_hs/metaware/src/tx_thread_schedule.s b/ports/arc_hs/metaware/src/tx_thread_schedule.s
index 954ec371..2651cb48 100644
--- a/ports/arc_hs/metaware/src/tx_thread_schedule.s
+++ b/ports/arc_hs/metaware/src/tx_thread_schedule.s
@@ -1,10 +1,10 @@
;/***************************************************************************
-; * Copyright (c) 2024 Microsoft Corporation
-; *
+; * Copyright (c) 2024 Microsoft Corporation
+; *
; * 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
; **************************************************************************/
@@ -57,18 +57,6 @@
;/* _tx_thread_system_return Return to system from thread */
;/* _tx_thread_context_restore Restore thread's context */
;/* */
-;/* RELEASE HISTORY */
-;/* */
-;/* DATE NAME DESCRIPTION */
-;/* */
-;/* 09-30-2020 William E. Lamie Initial Version 6.1 */
-;/* 10-15-2021 Andres Mlinar Modified comment(s), */
-;/* use schedule reenter, */
-;/* resulting in version 6.1.9 */
-;/* 03-08-2023 Cindy Deng Modified comment(s), added */
-;/* #include tx_user.h, */
-;/* resulting in version 6.2.1 */
-;/* */
;/**************************************************************************/
;VOID _tx_thread_schedule(VOID)
;{
@@ -149,11 +137,11 @@ __tx_thread_schedule_loop:
ld r2, [sp, 4] ; Pickup status32
kflag r2 ; Enter the proper register bank
ld r3, [sp, 8] ; Pickup the saved interrupt posture
- add sp, sp, 12 ; Recover small stack frame
- j_s.d [blink] ; Return to thread and restore flags
+ add sp, sp, 12 ; Recover small stack frame
+ j_s.d [blink] ; Return to thread and restore flags
seti r3 ; Recover STATUS32
-__tx_hw_interrupt_restore:
+__tx_hw_interrupt_restore:
mov r0, 0x2 ; Pretend level 1 interrupt is returning
sr r0, [AUX_IRQ_ACT] ;
@@ -163,10 +151,10 @@ __tx_hw_interrupt_restore:
sr r0, [LP_START] ; Restore LP_START
ld r1, [sp, 8] ; Recover LP_END
sr r1, [LP_END] ; Restore LP_END
- ld r2, [sp, 12] ; Recover LP_COUNT
+ ld r2, [sp, 12] ; Recover LP_COUNT
mov LP_COUNT, r2
.endif
-
+
.ifdef TX_ENABLE_ACC
ld r58, [sp, 140] ; Recover r58
ld r59, [sp, 144] ; Recover r59
@@ -180,7 +168,7 @@ __tx_hw_interrupt_restore:
kflag r0 ; Switch to the proper register bank
add sp, sp, 160 ; Recover the interrupt stack frame
rtie ; Return to point of interrupt
-
+
__tx_restore_non_hw_context:
;
; /* Determine if an interrupt frame or a synchronous task suspension frame
diff --git a/ports/arc_hs/metaware/src/tx_thread_stack_build.s b/ports/arc_hs/metaware/src/tx_thread_stack_build.s
index 8ef5dc98..db4becfc 100644
--- a/ports/arc_hs/metaware/src/tx_thread_stack_build.s
+++ b/ports/arc_hs/metaware/src/tx_thread_stack_build.s
@@ -1,10 +1,10 @@
;/***************************************************************************
-; * Copyright (c) 2024 Microsoft Corporation
-; *
+; * Copyright (c) 2024 Microsoft Corporation
+; *
; * 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
; **************************************************************************/
@@ -57,17 +57,6 @@
;/* */
;/* _tx_thread_create Create thread service */
;/* */
-;/* RELEASE HISTORY */
-;/* */
-;/* DATE NAME DESCRIPTION */
-;/* */
-;/* 09-30-2020 William E. Lamie Initial Version 6.1 */
-;/* 04-02-2021 Andres Mlinar Modified comments, */
-;/* resulting in version 6.1.6 */
-;/* 03-08-2023 Cindy Deng Modified comment(s), added */
-;/* #include tx_user.h, */
-;/* resulting in version 6.2.1 */
-;/* */
;/**************************************************************************/
;VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID))
;{
diff --git a/ports/arc_hs/metaware/src/tx_thread_system_return.s b/ports/arc_hs/metaware/src/tx_thread_system_return.s
index aec09bb4..453682e4 100644
--- a/ports/arc_hs/metaware/src/tx_thread_system_return.s
+++ b/ports/arc_hs/metaware/src/tx_thread_system_return.s
@@ -1,10 +1,10 @@
;/***************************************************************************
-; * Copyright (c) 2024 Microsoft Corporation
-; *
+; * Copyright (c) 2024 Microsoft Corporation
+; *
; * 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
; **************************************************************************/
@@ -54,18 +54,6 @@
;/* */
;/* ThreadX components */
;/* */
-;/* RELEASE HISTORY */
-;/* */
-;/* DATE NAME DESCRIPTION */
-;/* */
-;/* 09-30-2020 William E. Lamie Initial Version 6.1 */
-;/* 10-15-2021 Andres Mlinar Modified comments, */
-;/* use schedule reenter, */
-;/* resulting in version 6.1.9 */
-;/* 03-08-2023 Cindy Deng Modified comment(s), added */
-;/* #include tx_user.h, */
-;/* resulting in version 6.2.1 */
-;/* */
;/**************************************************************************/
;VOID _tx_thread_system_return(VOID)
;{
@@ -87,7 +75,7 @@ _tx_thread_system_return:
mov r4, 2 ; Build solicited hardward stack frame type
st r4, [sp, 0] ; Set stack frame type
st r3, [sp, 4] ; Save status32
- st r2, [sp, 8] ; Save interrupt posture
+ st r2, [sp, 8] ; Save interrupt posture
st sp, [r0, 8] ; Save thread's stack pointer
bclr r3, r3, 16 ; Build register bank 0 value
bclr r3, r3, 17 ;
@@ -120,7 +108,7 @@ __tx_software_context:
st r30, [sp, 72] ; Save r30
st sp, [r0, 8] ; Save thread's stack pointer
__tx_save_done:
-;
+;
.ifdef TX_ENABLE_EXECUTION_CHANGE_NOTIFY
;
; /* Call the thread exit function to indicate the thread is no longer executing. */
diff --git a/ports/arc_hs/metaware/src/tx_timer_interrupt.s b/ports/arc_hs/metaware/src/tx_timer_interrupt.s
index 59410fdc..6f6aa521 100644
--- a/ports/arc_hs/metaware/src/tx_timer_interrupt.s
+++ b/ports/arc_hs/metaware/src/tx_timer_interrupt.s
@@ -1,10 +1,10 @@
;/***************************************************************************
-; * Copyright (c) 2024 Microsoft Corporation
-; *
+; * Copyright (c) 2024 Microsoft Corporation
+; *
; * 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
; **************************************************************************/
@@ -58,23 +58,6 @@
;/* */
;/* interrupt vector */
;/* */
-;/* RELEASE HISTORY */
-;/* */
-;/* DATE NAME DESCRIPTION */
-;/* */
-;/* 09-30-2020 William E. Lamie Initial Version 6.1 */
-;/* 12-31-2020 Scott Larson Modified comment(s), remove */
-;/* unneeded load of */
-;/* _tx_thread_preempt_disable, */
-;/* resulting in version 6.1.3 */
-;/* 10-15-2021 Yuxin Zhou Modified comment(s), and */
-;/* fixed possible race */
-;/* condition on preemption */
-;/* resulting in version 6.1.9 */
-;/* 03-08-2023 Cindy Deng Modified comment(s), added */
-;/* #include tx_user.h, */
-;/* resulting in version 6.2.1 */
-;/* */
;/**************************************************************************/
;VOID _tx_timer_interrupt(VOID)
;{