diff options
| author | Yuxin Zhou <[email protected]> | 2021-07-28 07:24:02 +0000 |
|---|---|---|
| committer | Yuxin Zhou <[email protected]> | 2021-07-28 07:24:02 +0000 |
| commit | d0dab582506f132690b35b36ffea129ad51110b0 (patch) | |
| tree | 13add80dd314dc38efc1830f3d1f36b5a2596e98 /common_smp/src/tx_thread_create.c | |
| parent | 244365fc6a937c754cfc6bb8e6895dc6f37bac0e (diff) | |
Release 6.1.8v6.1.8_rel
Diffstat (limited to 'common_smp/src/tx_thread_create.c')
| -rw-r--r-- | common_smp/src/tx_thread_create.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/common_smp/src/tx_thread_create.c b/common_smp/src/tx_thread_create.c index 70557627..d53a1815 100644 --- a/common_smp/src/tx_thread_create.c +++ b/common_smp/src/tx_thread_create.c @@ -37,7 +37,7 @@ /* FUNCTION RELEASE */ /* */ /* _tx_thread_create PORTABLE SMP */ -/* 6.1.3 */ +/* 6.1.8 */ /* AUTHOR */ /* */ /* William E. Lamie, Microsoft Corporation */ @@ -80,9 +80,11 @@ /* */ /* DATE NAME DESCRIPTION */ /* */ -/* 09-30-2020 William E. Lamie Initial Version 6.1 */ -/* 12-31-2020 Andres Mlinar Modified comment(s), */ +/* 09-30-2020 William E. Lamie Initial Version 6.1 */ +/* 12-31-2020 Andres Mlinar Modified comment(s), */ /* resulting in version 6.1.3 */ +/* 08-02-2021 Scott Larson Removed unneeded cast, */ +/* resulting in version 6.1.8 */ /* */ /**************************************************************************/ UINT _tx_thread_create(TX_THREAD *thread_ptr, CHAR *name_ptr, @@ -120,7 +122,7 @@ ALIGN_TYPE updated_stack_start; /* Ensure the starting stack address is evenly aligned. */ new_stack_start = TX_POINTER_TO_ALIGN_TYPE_CONVERT(stack_start); - updated_stack_start = ((((ULONG) new_stack_start) + ((sizeof(ULONG)) - ((ULONG) 1)) ) & (~((sizeof(ULONG)) - ((ULONG) 1)))); + updated_stack_start = (((new_stack_start) + ((sizeof(ULONG)) - ((ULONG) 1)) ) & (~((sizeof(ULONG)) - ((ULONG) 1)))); /* Determine if the starting stack address is different. */ if (new_stack_start != updated_stack_start) |
