Skip to content

Commit 5748a9d

Browse files
committed
Merge pull request #826 from adamgreen/rtxSupportStacksLargerThan64k
RTX: Support stacks larger than 64k
2 parents ba69445 + d587474 commit 5748a9d

File tree

10 files changed

+12
-11
lines changed

10 files changed

+12
-11
lines changed

libraries/rtos/rtx/TARGET_CORTEX_M/TARGET_M0/TOOLCHAIN_GCC/HAL_CM0.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
.file "HAL_CM0.S"
3636
.syntax unified
3737

38-
.equ TCB_TSTACK, 36
38+
.equ TCB_TSTACK, 40
3939

4040

4141
/*----------------------------------------------------------------------------

libraries/rtos/rtx/TARGET_CORTEX_M/TARGET_M0/TOOLCHAIN_IAR/HAL_CM0.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
NAME HAL_CM0.S
3636

37-
#define TCB_TSTACK 36
37+
#define TCB_TSTACK 40
3838

3939
EXTERN os_flags
4040
EXTERN os_tsk

libraries/rtos/rtx/TARGET_CORTEX_M/TARGET_M0P/TOOLCHAIN_GCC/HAL_CM0.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
.file "HAL_CM0.S"
3636
.syntax unified
3737

38-
.equ TCB_TSTACK, 36
38+
.equ TCB_TSTACK, 40
3939

4040

4141
/*----------------------------------------------------------------------------

libraries/rtos/rtx/TARGET_CORTEX_M/TARGET_M0P/TOOLCHAIN_IAR/HAL_CM0.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
NAME HAL_CM0.S
3636

37-
#define TCB_TSTACK 36
37+
#define TCB_TSTACK 40
3838

3939
EXTERN os_flags
4040
EXTERN os_tsk

libraries/rtos/rtx/TARGET_CORTEX_M/TARGET_M3/TOOLCHAIN_GCC/HAL_CM3.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
.file "HAL_CM3.S"
3636
.syntax unified
3737

38-
.equ TCB_TSTACK, 36
38+
.equ TCB_TSTACK, 40
3939

4040

4141
/*----------------------------------------------------------------------------

libraries/rtos/rtx/TARGET_CORTEX_M/TARGET_M3/TOOLCHAIN_IAR/HAL_CM3.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
NAME HAL_CM3.S
3636

37-
#define TCB_TSTACK 36
37+
#define TCB_TSTACK 40
3838

3939
EXTERN os_flags
4040
EXTERN os_tsk

libraries/rtos/rtx/TARGET_CORTEX_M/TARGET_M4/TOOLCHAIN_GCC/HAL_CM4.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
.syntax unified
3737

3838
.equ TCB_STACKF, 32
39-
.equ TCB_TSTACK, 36
39+
.equ TCB_TSTACK, 40
4040

4141

4242
/*----------------------------------------------------------------------------

libraries/rtos/rtx/TARGET_CORTEX_M/TARGET_M4/TOOLCHAIN_IAR/HAL_CM4.s

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
NAME HAL_CM4.S
3636

3737
#define TCB_STACKF 32
38-
#define TCB_TSTACK 36
38+
#define TCB_TSTACK 40
3939

4040
EXTERN os_flags
4141
EXTERN os_tsk

libraries/rtos/rtx/TARGET_CORTEX_M/os_tcb.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ typedef struct OS_TCB {
3232

3333
/* Hardware dependant part: specific for CM processor */
3434
U8 stack_frame; /* Stack frame: 0=Basic, 1=Extended */
35-
U8 reserved;
36-
U16 priv_stack; /* Private stack size in bytes */
35+
U8 reserved1;
36+
U16 reserved2;
37+
U32 priv_stack; /* Private stack size in bytes */
3738
U32 tsk_stack; /* Current task Stack pointer (R13) */
3839
U32 *stack; /* Pointer to Task Stack memory block */
3940

libraries/rtos/rtx/TARGET_CORTEX_M/rt_TypeDef.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ typedef void *OS_ID;
4141
typedef U32 OS_RESULT;
4242

4343
#define TCB_STACKF 32 /* 'stack_frame' offset */
44-
#define TCB_TSTACK 36 /* 'tsk_stack' offset */
44+
#define TCB_TSTACK 40 /* 'tsk_stack' offset */
4545

4646
typedef struct OS_PSFE { /* Post Service Fifo Entry */
4747
void *id; /* Object Identification */

0 commit comments

Comments
 (0)