diff options
| author | Scott Larson <[email protected]> | 2020-10-16 11:57:42 -0700 |
|---|---|---|
| committer | Scott Larson <[email protected]> | 2020-10-16 11:57:42 -0700 |
| commit | 6773d468ae877ce36feda1c86842510fb33501a3 (patch) | |
| tree | f151f40723c3f794adc97f302f3df54a74c081b8 /common/src/tx_thread_suspend.c | |
| parent | c2df92c885c06b85a3800617b46f291342ea184e (diff) | |
6.1.1 patch: add stack sealing to armv8-m, fix misra warning, fix stack check link errorv6.1.1_rel
Diffstat (limited to 'common/src/tx_thread_suspend.c')
| -rw-r--r-- | common/src/tx_thread_suspend.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/common/src/tx_thread_suspend.c b/common/src/tx_thread_suspend.c index 764158b7..dc4fc076 100644 --- a/common/src/tx_thread_suspend.c +++ b/common/src/tx_thread_suspend.c @@ -35,7 +35,7 @@ /* FUNCTION RELEASE */ /* */ /* _tx_thread_suspend PORTABLE C */ -/* 6.1 */ +/* 6.1.1 */ /* AUTHOR */ /* */ /* William E. Lamie, Microsoft Corporation */ @@ -70,6 +70,10 @@ /* 05-19-2020 William E. Lamie Initial Version 6.0 */ /* 09-30-2020 Yuxin Zhou Modified comment(s), */ /* resulting in version 6.1 */ +/* 10-16-2020 Yuxin Zhou Modified comment(s), and */ +/* added type cast to address */ +/* a MISRA compliance issue, */ +/* resulting in version 6.1.1 */ /* */ /**************************************************************************/ UINT _tx_thread_suspend(TX_THREAD *thread_ptr) @@ -103,7 +107,7 @@ UINT status; status = TX_SUCCESS; /* Determine if we are in a thread context. */ - if (TX_THREAD_GET_SYSTEM_STATE() == 0) + if (TX_THREAD_GET_SYSTEM_STATE() == ((ULONG) 0)) { /* Yes, we are in a thread context. */ @@ -264,7 +268,7 @@ ULONG time_stamp = ((ULONG) 0); status = TX_SUCCESS; /* Determine if we are in a thread context. */ - if (TX_THREAD_GET_SYSTEM_STATE() == 0) + if (TX_THREAD_GET_SYSTEM_STATE() == ((ULONG) 0)) { /* Yes, we are in a thread context. */ |
