Skip to content

Commit

Permalink
Update on 16 Dec 2022. Expand to see details.
Browse files Browse the repository at this point in the history
b5d5df511 #include tx_user.h in assembly files for cortex-m ports
33e04e3d5 initial port of MIPS SMP for GHS and GNU
2eda2c17d capitalize extensions for M23 asm files
21c354ccb Fix armv7-m MPU settings for corner case, unify txm_module_port.h files
4a1ff93f9 remove uneeded include for ac6
c823e91ff update riscv iar example for latest iar tools
5559d185d check module stack for overlap (not kernel stack)
efa9ce7b7 apply patch from mobileye to fix time slice processing
75fdcb722 Updated copy_armv7_cm.yml
de04b9904 initialize unused MPU settings so that aliasing will work
79b317b60 add config directory to IAR RISC-V port in order to use simulator
  • Loading branch information
Scott Larson committed Dec 16, 2022
1 parent b42c5ac commit 4e62226
Show file tree
Hide file tree
Showing 148 changed files with 21,660 additions and 50 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
/* FUNCTION RELEASE */
/* */
/* _txm_module_manager_thread_create PORTABLE C */
/* 6.1.3 */
/* 6.x */
/* AUTHOR */
/* */
/* Scott Larson, Microsoft Corporation */
Expand Down Expand Up @@ -91,6 +91,9 @@
/* added 64-bit support, */
/* added SMP support, */
/* resulting in version 6.1.3 */
/* xx-xx-xxxx Scott Larson Check module stack for */
/* overlap, */
/* resulting in version 6.x */
/* */
/**************************************************************************/
UINT _txm_module_manager_thread_create(TX_THREAD *thread_ptr, CHAR *name_ptr,
Expand Down Expand Up @@ -158,8 +161,8 @@ ULONG i;
}

/* Check the stack pointer to see if it overlaps with this thread's stack. */
if ((((UCHAR *) ((VOID *) stack_start)) <= ((UCHAR *) ((VOID *) next_thread -> tx_thread_stack_end))) &&
(((UCHAR *) ((VOID *) stack_end)) >= ((UCHAR *) ((VOID *) next_thread -> tx_thread_stack_start))))
if ((((UCHAR *) ((VOID *) stack_start)) <= ((UCHAR *) ((VOID *) next_thread -> tx_thread_module_stack_end))) &&
(((UCHAR *) ((VOID *) stack_end)) >= ((UCHAR *) ((VOID *) next_thread -> tx_thread_module_stack_start))))
{
/* Stacks overlap, clear the stack pointer to force a stack error below. */
stack_start = TX_NULL;
Expand Down
5 changes: 4 additions & 1 deletion ports/cortex_m0/ac6/src/tx_thread_context_restore.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
@/**************************************************************************/
@/**************************************************************************/
@
#include "tx_user.h"
@
#if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE))
.global _tx_execution_isr_exit
Expand All @@ -41,7 +42,7 @@
@/* FUNCTION RELEASE */
@/* */
@/* _tx_thread_context_restore Cortex-M0/AC6 */
@/* 6.1 */
@/* 6.x */
@/* AUTHOR */
@/* */
@/* William E. Lamie, Microsoft Corporation */
Expand Down Expand Up @@ -76,6 +77,8 @@
@/* DATE NAME DESCRIPTION */
@/* */
@/* 09-30-2020 William E. Lamie Initial Version 6.1 */
@/* xx-xx-xxxx Scott Larson Include tx_user.h, */
@/* resulting in version 6.x */
@/* */
@/**************************************************************************/
@VOID _tx_thread_context_restore(VOID)
Expand Down
5 changes: 4 additions & 1 deletion ports/cortex_m0/ac6/src/tx_thread_context_save.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
@/**************************************************************************/
@/**************************************************************************/
@
#include "tx_user.h"
@
#if (defined(TX_ENABLE_EXECUTION_CHANGE_NOTIFY) || defined(TX_EXECUTION_PROFILE_ENABLE))
.global _tx_execution_isr_enter
Expand All @@ -36,7 +37,7 @@
@/* FUNCTION RELEASE */
@/* */
@/* _tx_thread_context_save Cortex-M0/AC6 */
@/* 6.1 */
@/* 6.x */
@/* AUTHOR */
@/* */
@/* William E. Lamie, Microsoft Corporation */
Expand Down Expand Up @@ -70,6 +71,8 @@
@/* DATE NAME DESCRIPTION */
@/* */
@/* 09-30-2020 William E. Lamie Initial Version 6.1 */
@/* xx-xx-xxxx Scott Larson Include tx_user.h, */
@/* resulting in version 6.x */
@/* */
@/**************************************************************************/
@VOID _tx_thread_context_save(VOID)
Expand Down
5 changes: 4 additions & 1 deletion ports/cortex_m0/ac6/src/tx_thread_interrupt_control.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
@/**************************************************************************/
@/**************************************************************************/

#include "tx_user.h"

.text 32
.align 4
Expand All @@ -30,7 +31,7 @@
@/* FUNCTION RELEASE */
@/* */
@/* _tx_thread_interrupt_control Cortex-M0/AC6 */
@/* 6.1 */
@/* 6.x */
@/* AUTHOR */
@/* */
@/* William E. Lamie, Microsoft Corporation */
Expand Down Expand Up @@ -61,6 +62,8 @@
@/* DATE NAME DESCRIPTION */
@/* */
@/* 09-30-2020 William E. Lamie Initial Version 6.1 */
@/* xx-xx-xxxx Scott Larson Include tx_user.h, */
@/* resulting in version 6.x */
@/* */
@/**************************************************************************/
@/* UINT _tx_thread_interrupt_control(UINT new_posture)
Expand Down
5 changes: 4 additions & 1 deletion ports/cortex_m0/ac6/src/tx_thread_interrupt_disable.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
@/**************************************************************************/
@/**************************************************************************/

#include "tx_user.h"

.text 32
.align 4
Expand All @@ -30,7 +31,7 @@
@/* FUNCTION RELEASE */
@/* */
@/* _tx_thread_interrupt_disable Cortex-M0/AC6 */
@/* 6.1 */
@/* 6.x */
@/* AUTHOR */
@/* */
@/* William E. Lamie, Microsoft Corporation */
Expand Down Expand Up @@ -60,6 +61,8 @@
@/* DATE NAME DESCRIPTION */
@/* */
@/* 09-30-2020 William E. Lamie Initial Version 6.1 */
@/* xx-xx-xxxx Scott Larson Include tx_user.h, */
@/* resulting in version 6.x */
@/* */
@/**************************************************************************/
@/* UINT _tx_thread_interrupt_disable(VOID)
Expand Down
5 changes: 4 additions & 1 deletion ports/cortex_m0/ac6/src/tx_thread_interrupt_restore.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
@/**************************************************************************/
@/**************************************************************************/

#include "tx_user.h"

.text 32
.align 4
Expand All @@ -30,7 +31,7 @@
@/* FUNCTION RELEASE */
@/* */
@/* _tx_thread_interrupt_restore Cortex-M0/AC6 */
@/* 6.1 */
@/* 6.x */
@/* AUTHOR */
@/* */
@/* William E. Lamie, Microsoft Corporation */
Expand Down Expand Up @@ -61,6 +62,8 @@
@/* DATE NAME DESCRIPTION */
@/* */
@/* 09-30-2020 William E. Lamie Initial Version 6.1 */
@/* xx-xx-xxxx Scott Larson Include tx_user.h, */
@/* resulting in version 6.x */
@/* */
@/**************************************************************************/
@/* VOID _tx_thread_interrupt_restore(UINT old_posture)
Expand Down
5 changes: 4 additions & 1 deletion ports/cortex_m0/ac6/src/tx_thread_schedule.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
@/**************************************************************************/
@/**************************************************************************/
@
#include "tx_user.h"
@
.global _tx_thread_current_ptr
.global _tx_thread_execute_ptr
Expand All @@ -43,7 +44,7 @@
@/* FUNCTION RELEASE */
@/* */
@/* _tx_thread_schedule Cortex-M0/AC6 */
@/* 6.1.5 */
@/* 6.x */
@/* AUTHOR */
@/* */
@/* William E. Lamie, Microsoft Corporation */
Expand Down Expand Up @@ -80,6 +81,8 @@
@/* 03-02-2021 Scott Larson Modified comment(s), add */
@/* low power code, */
@/* resulting in version 6.1.5 */
@/* xx-xx-xxxx Scott Larson Include tx_user.h, */
@/* resulting in version 6.x */
@/* */
@/**************************************************************************/
@VOID _tx_thread_schedule(VOID)
Expand Down
5 changes: 4 additions & 1 deletion ports/cortex_m0/ac6/src/tx_thread_stack_build.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
@/**************************************************************************/
@/**************************************************************************/
@
#include "tx_user.h"
@
.text
.align 4
Expand All @@ -29,7 +30,7 @@
@/* FUNCTION RELEASE */
@/* */
@/* _tx_thread_stack_build Cortex-M0/AC6 */
@/* 6.1 */
@/* 6.x */
@/* AUTHOR */
@/* */
@/* William E. Lamie, Microsoft Corporation */
Expand Down Expand Up @@ -62,6 +63,8 @@
@/* DATE NAME DESCRIPTION */
@/* */
@/* 09-30-2020 William E. Lamie Initial Version 6.1 */
@/* xx-xx-xxxx Scott Larson Include tx_user.h, */
@/* resulting in version 6.x */
@/* */
@/**************************************************************************/
@VOID _tx_thread_stack_build(TX_THREAD *thread_ptr, VOID (*function_ptr)(VOID))
Expand Down
5 changes: 4 additions & 1 deletion ports/cortex_m0/ac6/src/tx_thread_system_return.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
@/**************************************************************************/
@/**************************************************************************/

#include "tx_user.h"

.text
.align 4
Expand All @@ -29,7 +30,7 @@
@/* FUNCTION RELEASE */
@/* */
@/* _tx_thread_system_return Cortex-M0/AC6 */
@/* 6.1 */
@/* 6.x */
@/* AUTHOR */
@/* */
@/* William E. Lamie, Microsoft Corporation */
Expand Down Expand Up @@ -62,6 +63,8 @@
@/* DATE NAME DESCRIPTION */
@/* */
@/* 09-30-2020 William E. Lamie Initial Version 6.1 */
@/* xx-xx-xxxx Scott Larson Include tx_user.h, */
@/* resulting in version 6.x */
@/* */
@/**************************************************************************/
@/* VOID _tx_thread_system_return(VOID)
Expand Down
5 changes: 4 additions & 1 deletion ports/cortex_m0/ac6/src/tx_timer_interrupt.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
@/**************************************************************************/
@/**************************************************************************/
@
#include "tx_user.h"
@
.global _tx_timer_time_slice
.global _tx_timer_system_clock
Expand All @@ -40,7 +41,7 @@
@/* FUNCTION RELEASE */
@/* */
@/* _tx_timer_interrupt Cortex-M0/AC6 */
@/* 6.1 */
@/* 6.x */
@/* AUTHOR */
@/* */
@/* William E. Lamie, Microsoft Corporation */
Expand Down Expand Up @@ -75,6 +76,8 @@
@/* DATE NAME DESCRIPTION */
@/* */
@/* 09-30-2020 William E. Lamie Initial Version 6.1 */
@/* xx-xx-xxxx Scott Larson Include tx_user.h, */
@/* resulting in version 6.x */
@/* */
@/**************************************************************************/
@VOID _tx_timer_interrupt(VOID)
Expand Down
5 changes: 4 additions & 1 deletion ports/cortex_m0/gnu/src/tx_thread_context_restore.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
@/**************************************************************************/
@/**************************************************************************/
@
#include "tx_user.h"
@
.global _tx_thread_system_state
.global _tx_thread_current_ptr
Expand All @@ -42,7 +43,7 @@
@/* FUNCTION RELEASE */
@/* */
@/* _tx_thread_context_restore Cortex-M0/GNU */
@/* 6.1 */
@/* 6.x */
@/* AUTHOR */
@/* */
@/* William E. Lamie, Microsoft Corporation */
Expand Down Expand Up @@ -80,6 +81,8 @@
@/* 09-30-2020 Scott Larson Modified comment(s), and */
@/* cleaned up whitespace, */
@/* resulting in version 6.1 */
@/* xx-xx-xxxx Scott Larson Include tx_user.h, */
@/* resulting in version 6.x */
@/* */
@/**************************************************************************/
@VOID _tx_thread_context_restore(VOID)
Expand Down
5 changes: 4 additions & 1 deletion ports/cortex_m0/gnu/src/tx_thread_context_save.S
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
@/**************************************************************************/
@/**************************************************************************/
@
#include "tx_user.h"
@
.global _tx_thread_system_state
.global _tx_thread_current_ptr
Expand All @@ -34,7 +35,7 @@
@/* FUNCTION RELEASE */
@/* */
@/* _tx_thread_context_save Cortex-M0/GNU */
@/* 6.1 */
@/* 6.x */
@/* AUTHOR */
@/* */
@/* William E. Lamie, Microsoft Corporation */
Expand Down Expand Up @@ -71,6 +72,8 @@
@/* 09-30-2020 Scott Larson Modified comment(s), and */
@/* cleaned up whitespace, */
@/* resulting in version 6.1 */
@/* xx-xx-xxxx Scott Larson Include tx_user.h, */
@/* resulting in version 6.x */
@/* */
@/**************************************************************************/
@VOID _tx_thread_context_save(VOID)
Expand Down
Loading

0 comments on commit 4e62226

Please sign in to comment.