-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Warning fixes. #356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning fixes. #356
Conversation
tasks.c
Outdated
@@ -3945,6 +3945,10 @@ static void prvCheckTasksWaitingTermination( void ) | |||
* want to allocate and clean RAM statically. */ | |||
portCLEAN_UP_TCB( pxTCB ); | |||
|
|||
/* Remove compiler warning about unused variables when portCLEAN_UP_TCB | |||
* is not being used. */ | |||
( void ) pxTCB; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
( void ) pxTCB; | |
#if !defined( portCLEAN_UP_TCB ) || ( portCLEAN_UP_TCB == 0 ) | |
( void ) pxTCB; | |
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the review.
This won't work because portCLEAN_UP_TCB is defined. It's just defined to nothing.
#define portCLEAN_UP_TCB( pxTCB )
Perhaps the comment wording could be improved. I'm open to suggestions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah thank you for pointing out. I updated the changes here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The updated changes also will not work. portCLEAN_UP_TCB
is defined to nothing, it is not defined to 0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this default definition not take care of this? https://github.com/FreeRTOS/FreeRTOS-Kernel/blob/main/include/FreeRTOS.h#L314
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would, except that portCLEAN_UP_TCB
is already defined in many ports provided in the repository. Examples:
I could fix/remove these instances of portCLEAN_UP_TCB
instead if you prefer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not convinced that we have to intoduce the clear defines here, let me get some more inputs
Codecov Report
@@ Coverage Diff @@
## main #356 +/- ##
=======================================
Coverage 92.13% 92.13%
=======================================
Files 4 4
Lines 1272 1272
Branches 342 342
=======================================
Hits 1172 1172
Misses 53 53
Partials 47 47
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
I don't mind using the existing defines, but they would need to be typecast to avoid the warning. The bitwise not operation (~) appears to convert all literals to signed integers in GCC. The new defines seemed cleaner to me than typecasting the existing define that already includes a typecast. Example of the equivalent fix with the existing define:
|
Another option is to change the type of |
timers.c
Outdated
#define tmrSTATUS_CLEAR_ACTIVE ( ( uint8_t ) ~0x01 ) | ||
#define tmrSTATUS_CLEAR_STATICALLY_ALLOCATED ( ( uint8_t ) ~0x02 ) | ||
#define tmrSTATUS_CLEAR_AUTORELOAD ( ( uint8_t ) ~0x04 ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#define tmrSTATUS_CLEAR_ACTIVE ( ( uint8_t ) ~0x01 ) | |
#define tmrSTATUS_CLEAR_STATICALLY_ALLOCATED ( ( uint8_t ) ~0x02 ) | |
#define tmrSTATUS_CLEAR_AUTORELOAD ( ( uint8_t ) ~0x04 ) | |
#define tmrSTATUS_CLEAR_ACTIVE ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE ) | |
#define tmrSTATUS_CLEAR_STATICALLY_ALLOCATED ( ( uint8_t ) ~tmrSTATUS_IS_STATICALLY_ALLOCATED ) | |
#define tmrSTATUS_CLEAR_AUTORELOAD ( ( uint8_t ) ~tmrSTATUS_IS_AUTORELOAD ) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The above is just a suggestion if we decide to add new defines.
I do think that would make things cleaner, but it might not be worth the compatibility break (in my opinion). |
Please let me know when you have made a decision on how you prefer to fix these warnings and if you would like me to make any changes. |
I don't think it would cause any compatibility issues -- what am I missing? |
My mistake, I didn't notice the xTIMER struct is limited in scope to timers.c. I will make this change. |
Might be best to wait for feedback from @cobusve or others from FreeRTOS. Using a signed field may run afoul of overzealous static checkers due to bitwise operations, even though flag operations on a field that always gets promoted are safe. |
Fair point, thanks. I will make this change if requested. |
@cobusve, have you made a decision regarding the CLEAR defines yet? I can make changes if you have any specific request. |
Yes, apologies for the delay in response. Please make the following changes:
pxTimer->ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE );
Please let us know if you would want us to make these changes. Thank you for your contribution. |
…OCATE_SECURE_CONTEXT( ulSecureStackSize ) from ports. When these are undefined, the default empty definition is defined in FreeRTOS.h.
timers.c
Outdated
@@ -462,7 +462,7 @@ | |||
} | |||
else | |||
{ | |||
pxTimer->ucStatus &= ~tmrSTATUS_IS_AUTORELOAD; | |||
pxTimer->ucStatus &= ( (uint8_t) ~tmrSTATUS_IS_AUTORELOAD ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pxTimer->ucStatus &= ( (uint8_t) ~tmrSTATUS_IS_AUTORELOAD ); | |
pxTimer->ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_AUTORELOAD ); | |
timers.c
Outdated
@@ -550,7 +550,7 @@ | |||
} | |||
else | |||
{ | |||
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE; | |||
pxTimer->ucStatus &= ( (uint8_t) ~tmrSTATUS_IS_ACTIVE ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pxTimer->ucStatus &= ( (uint8_t) ~tmrSTATUS_IS_ACTIVE ); | |
pxTimer->ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE ); | |
timers.c
Outdated
@@ -829,7 +829,7 @@ | |||
} | |||
else | |||
{ | |||
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE; | |||
pxTimer->ucStatus &= ( (uint8_t) ~tmrSTATUS_IS_ACTIVE ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pxTimer->ucStatus &= ( (uint8_t) ~tmrSTATUS_IS_ACTIVE ); | |
pxTimer->ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE ); | |
timers.c
Outdated
@@ -846,7 +846,7 @@ | |||
case tmrCOMMAND_STOP: | |||
case tmrCOMMAND_STOP_FROM_ISR: | |||
/* The timer has already been removed from the active list. */ | |||
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE; | |||
pxTimer->ucStatus &= ( (uint8_t) ~tmrSTATUS_IS_ACTIVE ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pxTimer->ucStatus &= ( (uint8_t) ~tmrSTATUS_IS_ACTIVE ); | |
pxTimer->ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE ); | |
timers.c
Outdated
@@ -876,7 +876,7 @@ | |||
} | |||
else | |||
{ | |||
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE; | |||
pxTimer->ucStatus &= ( (uint8_t) ~tmrSTATUS_IS_ACTIVE ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pxTimer->ucStatus &= ( (uint8_t) ~tmrSTATUS_IS_ACTIVE ); | |
pxTimer->ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE ); | |
timers.c
Outdated
@@ -885,7 +885,7 @@ | |||
* could not have been dynamically allocated. So there is | |||
* no need to free the memory - just mark the timer as | |||
* "not active". */ | |||
pxTimer->ucStatus &= ~tmrSTATUS_IS_ACTIVE; | |||
pxTimer->ucStatus &= ( (uint8_t) ~tmrSTATUS_IS_ACTIVE ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pxTimer->ucStatus &= ( (uint8_t) ~tmrSTATUS_IS_ACTIVE ); | |
pxTimer->ucStatus &= ( ( uint8_t ) ~tmrSTATUS_IS_ACTIVE ); | |
commit 6ab51bb Author: dawood87 <[email protected]> Date: Tue Oct 19 14:32:34 2021 +0200 Squashed commit of the following: commit d649a77 Author: Archit Gupta <[email protected]> Date: Sat Oct 16 16:36:44 2021 -0700 Fix prvWriteMessageToBuffer on big endian (FreeRTOS#391) prvWriteMessageToBuffer wrote the first sbBYTES_TO_STORE_MESSAGE_LENGTH bytes of the size_t-typed length to the buffer as the data length. While this functions on little endian, it copies the wrong bytes on big endian. This fix converts the length to configMESSAGE_BUFFER_LENGTH_TYPE first, and then copies the exact amount, thus fixing the issue. Additionally it adds an assert to verify the size is not greater than the max value of configMESSAGE_BUFFER_LENGTH_TYPE; previously this would truncate silently. Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]> commit 06fb777 Author: Gaurav-Aggarwal-AWS <[email protected]> Date: Sat Oct 16 13:45:03 2021 -0700 Update comments for the ARM_CA53_64_BIT_SRE port (FreeRTOS#403) Mention that FreeRTOS_IRQ_Handler should not be used for FIQs and the reason for assuming Group 1 for Interrupt Acknowledge and End Of Interrupt registers. Signed-off-by: Gaurav Aggarwal <[email protected]> commit 68ddb32 Author: Stephane Viau <[email protected]> Date: Fri Oct 15 18:21:56 2021 +0200 Handle interrupt acknowledge register in Cortex-A53 SRE port (FreeRTOS#392) Let the FreeRTOS IRQ handler properly store and restore the ICCIAR register value around the vApplicationIRQHandler() call. Signed-off-by: Stephane Viau <[email protected]> Co-authored-by: Stephane Viau <[email protected]> Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]> commit a030d0a Author: swaldhoer <[email protected]> Date: Thu Oct 7 00:32:07 2021 +0200 fix typo (FreeRTOS#399) commit 226f4b9 Author: dawood87 <[email protected]> Date: Tue Oct 19 14:32:04 2021 +0200 Squashed commit of the following: commit 5f274a2 Merge: 14fddf1 763f1b8 Author: dawood87 <[email protected]> Date: Mon Oct 18 17:37:46 2021 +0200 Merge branch '347-omit-size-in-extern-uint8t-ucHeap' of https://github.com/starcopter/FreeRTOS-Kernel into pr/351 commit 14fddf1 Author: dawood87 <[email protected]> Date: Fri Oct 15 13:38:24 2021 +0200 Squashed commit of the following: commit a030d0a Author: swaldhoer <[email protected]> Date: Thu Oct 7 00:32:07 2021 +0200 fix typo (FreeRTOS#399) commit 1fb4e84 Author: Qikai <[email protected]> Date: Tue Oct 5 02:15:00 2021 +0800 Fix the defect that Heap_1.c may waste first portBYTE_ALIGNMENT bytes of ucHeap[] (FreeRTOS#238) * Fix the defect that Heap_1.c may waste first 8 bytes of ucHeap[] * Fix the same byte waste issue in heap_2 commit 5f290e4 Author: Andres O. Vela <[email protected]> Date: Thu Sep 30 19:18:47 2021 +0200 Fix typo in comment (FreeRTOS#398) commit 741185f Author: Shubham Kulkarni <[email protected]> Date: Fri Sep 17 02:46:22 2021 +0530 Xtensa_ESP32: Add definition for portMEMORY_BARRIER (FreeRTOS#395) This fixes crash observed in Amazon FreeRTOS when optimisations are enabled commit 1b86b39 Author: Gaurav-Aggarwal-AWS <[email protected]> Date: Tue Sep 14 19:25:46 2021 -0700 Remove AVR ports from main repo (FreeRTOS#394) These ports now exist in the https://github.com/FreeRTOS/FreeRTOS-Kernel-Partner-Supported-Ports repo. Signed-off-by: Gaurav Aggarwal <[email protected]> commit 384ffc5 Author: Gaurav Aggarwal <[email protected]> Date: Fri Sep 10 23:27:12 2021 +0000 Fix spell-check failure Signed-off-by: Gaurav Aggarwal <[email protected]> commit 68889fd Author: Gaurav Aggarwal <[email protected]> Date: Fri Sep 10 23:20:36 2021 +0000 Update History.txt Signed-off-by: Gaurav Aggarwal <[email protected]> commit 99a5a5f Author: Gaurav Aggarwal <[email protected]> Date: Tue Aug 10 00:00:35 2021 -0700 Fix free secure context for Cortex-M23 ports Update the branching condition to correctly free secure context when there is one. Signed-off-by: Gaurav Aggarwal <[email protected]> commit 06ea727 Author: Gaurav Aggarwal <[email protected]> Date: Wed Aug 4 15:00:47 2021 -0700 Implement secure stack sealing as per ARM's recommendation Signed-off-by: Gaurav Aggarwal <[email protected]> commit 61f7560 Author: Gaurav Aggarwal <[email protected]> Date: Wed Aug 4 14:57:45 2021 -0700 Associate secure context with task handle The secure side context management code now checks that the secure context being saved or restored belongs to the task being switched-out or switched-in respectively. Signed-off-by: Gaurav Aggarwal <[email protected]> commit ccaa0f4 Author: Gaurav Aggarwal <[email protected]> Date: Wed Aug 4 14:52:22 2021 -0700 Pre-allocate secure-side context structures This commit improves ARMv8-M security by pre-allocating secure-side task context structures and changing how tasks reference a secure-side context structure when calling a secure function. The new configuration constant secureconfigMAX_SECURE_CONTEXTS sets the number of secure context structures to pre-allocate. secureconfigMAX_SECURE_CONTEXTS defaults to 8 if left undefined. Signed-off-by: Gaurav Aggarwal <[email protected]> commit f8ada39 Author: Zim Kalinowski <[email protected]> Date: Wed Sep 8 03:03:12 2021 +0800 Replace <pre> with @code - remaining files (FreeRTOS#388) Co-authored-by: Paul Bartell <[email protected]> Co-authored-by: Ming Yue <[email protected]> commit fa0f5c4 Author: Gaurav-Aggarwal-AWS <[email protected]> Date: Wed Sep 1 15:38:07 2021 -0700 Add freertos_risc_v_chip_specific_extensions.h for 64-bit ports (FreeRTOS#385) * Add freertos_risc_v_chip_specific_extensions.h for 64-bit ports Signed-off-by: Gaurav Aggarwal <[email protected]> commit bb02cf6 Author: Zim Kalinowski <[email protected]> Date: Wed Sep 1 02:24:56 2021 +0800 minor fix in stream buffer doc (FreeRTOS#387) Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]> commit ae73f0d Author: Zim Kalinowski <[email protected]> Date: Wed Sep 1 00:04:36 2021 +0800 Replace <pre> with @code{c} (FreeRTOS#386) * replace <pre> with @code{c} * endcode must pass spellcheck commit c290780 Author: sherryzhang <[email protected]> Date: Fri Aug 27 14:07:58 2021 +0800 Update the README to align with TF-Mv1.4.0 in TF-M integration (FreeRTOS#384) Change-Id: I41fc8e18657086e86eacd38ed70f474555739a3c Signed-off-by: Sherry Zhang <[email protected]> commit 0b1e9d7 Author: Zim Kalinowski <[email protected]> Date: Fri Aug 13 09:15:57 2021 +0800 fixes in queue documentation (FreeRTOS#382) Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]> commit 6ba8aa6 Author: Shubham Kulkarni <[email protected]> Date: Fri Aug 13 06:16:25 2021 +0530 Xtensa_ESP32: Fix build issues when external SPIRAM is enabled (FreeRTOS#381) Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]> commit d858d1f Author: Paul Adelsbach <[email protected]> Date: Thu Aug 12 17:06:41 2021 -0700 fix example usage of xMessageBufferCreateStatic and xStreamBufferCrea… (FreeRTOS#380) Example usage is actually correct, so remove the -1. but update the incorrect parameter description for pucStreamBufferStorageArea and pucMessageBufferStorageArea. commit d018018 Author: Jack Lam <[email protected]> Date: Fri Aug 13 02:50:52 2021 +0800 Tidy up the 8051 sdcc port (FreeRTOS#376) * Tidy up the 8051 sdcc port * Replace tabs with spaces in SDCC Cygnal port.c file. Co-authored-by: John Lin <[email protected]> Co-authored-by: Paul Bartell <[email protected]> commit 1b38078 Author: Zim Kalinowski <[email protected]> Date: Fri Aug 13 02:18:53 2021 +0800 fixed parameter names documentation (FreeRTOS#378) commit b97bb48 Author: RichardBarry <[email protected]> Date: Wed Aug 4 10:05:23 2021 -0700 Indent contents of a taskENTER_CRITICAL/taskEXIT_CRITICAL block. (FreeRTOS#348) * Indent contents of a taskENTER_CRITICAL/taskEXIT_CRITICAL block. Move a few configASSERT() statements out of a path where they would always be triggered to prevent "condition is always true" compiler warnings. * Replace configASSERT() positions due to unintended semantic change from the version where asserts were at the top of the file. Co-authored-by: RichardBarry <[email protected]> Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]> commit ce81bcb Author: alfred gedeon <[email protected]> Date: Wed Jul 28 17:53:10 2021 -0700 Run uncrustify with github workflows (FreeRTOS#369) * uncrustify with github workflows * Fix find expression * Add uncrustify configuration file * Uncrustify some files * uncrustify some more files * uncrustify more files * Fix whitespace at end of lines Co-authored-by: Cobus van Eeden <[email protected]> commit 85a2312 Author: Gaurav-Aggarwal-AWS <[email protected]> Date: Wed Jul 28 10:37:51 2021 -0700 Add ReadMe for third party port contributions (FreeRTOS#371) * Add ReadMe for third party port contributions Signed-off-by: Gaurav Aggarwal <[email protected]> commit d9d5d53 Author: Craig Kewley <[email protected]> Date: Wed Jul 21 01:21:18 2021 +0100 doc: fix function name typo (FreeRTOS#368) commit b5a9229 Author: Kristine Jassmann <[email protected]> Date: Tue Jul 20 15:55:49 2021 -0400 Warning fixes. (FreeRTOS#356) * Use cast to fix warnings. * Remove all empty definitions of portCLEAN_UP_TCB( pxTCB ) and portALLOCATE_SECURE_CONTEXT( ulSecureStackSize ) from ports. When these are undefined, the default empty definition is defined in FreeRTOS.h. commit 236a458 Author: Lasse Fröhner <[email protected]> Date: Fri Jun 18 15:48:24 2021 +0000 Change ucHeap[] To Pointer Type commit 6768094 Author: Lasse Fröhner <[email protected]> Date: Wed Jun 9 11:32:17 2021 +0000 Omit configTOTAL_HEAP_SIZE with Application Allocated Heap See FreeRTOS#347 commit 763f1b8 Merge: f31a1ac 1d86b97 Author: Lasse Fröhner <[email protected]> Date: Sat Jul 17 13:32:47 2021 +0200 Merge branch 'main' into 347-omit-size-in-extern-uint8t-ucHeap commit f31a1ac Author: Lasse Fröhner <[email protected]> Date: Fri Jun 18 15:48:24 2021 +0000 Change ucHeap[] To Pointer Type commit a7eb292 Merge: 0780328 6a84f2c Author: Lasse Fröhner <[email protected]> Date: Sat Jun 12 14:56:18 2021 +0200 Merge branch 'main' into 347-omit-size-in-extern-uint8t-ucHeap commit 0780328 Merge: d687545 bad8f01 Author: Lasse Fröhner <[email protected]> Date: Thu Jun 10 23:26:09 2021 +0200 Merge branch 'main' into 347-omit-size-in-extern-uint8t-ucHeap commit d687545 Author: Lasse Fröhner <[email protected]> Date: Wed Jun 9 11:32:17 2021 +0000 Omit configTOTAL_HEAP_SIZE with Application Allocated Heap See FreeRTOS#347
commit 5f274a2 Merge: 14fddf1 763f1b8 Author: dawood87 <[email protected]> Date: Mon Oct 18 17:37:46 2021 +0200 Merge branch '347-omit-size-in-extern-uint8t-ucHeap' of https://github.com/starcopter/FreeRTOS-Kernel into pr/351 commit 14fddf1 Author: dawood87 <[email protected]> Date: Fri Oct 15 13:38:24 2021 +0200 Squashed commit of the following: commit a030d0a Author: swaldhoer <[email protected]> Date: Thu Oct 7 00:32:07 2021 +0200 fix typo (FreeRTOS#399) commit 1fb4e84 Author: Qikai <[email protected]> Date: Tue Oct 5 02:15:00 2021 +0800 Fix the defect that Heap_1.c may waste first portBYTE_ALIGNMENT bytes of ucHeap[] (FreeRTOS#238) * Fix the defect that Heap_1.c may waste first 8 bytes of ucHeap[] * Fix the same byte waste issue in heap_2 commit 5f290e4 Author: Andres O. Vela <[email protected]> Date: Thu Sep 30 19:18:47 2021 +0200 Fix typo in comment (FreeRTOS#398) commit 741185f Author: Shubham Kulkarni <[email protected]> Date: Fri Sep 17 02:46:22 2021 +0530 Xtensa_ESP32: Add definition for portMEMORY_BARRIER (FreeRTOS#395) This fixes crash observed in Amazon FreeRTOS when optimisations are enabled commit 1b86b39 Author: Gaurav-Aggarwal-AWS <[email protected]> Date: Tue Sep 14 19:25:46 2021 -0700 Remove AVR ports from main repo (FreeRTOS#394) These ports now exist in the https://github.com/FreeRTOS/FreeRTOS-Kernel-Partner-Supported-Ports repo. Signed-off-by: Gaurav Aggarwal <[email protected]> commit 384ffc5 Author: Gaurav Aggarwal <[email protected]> Date: Fri Sep 10 23:27:12 2021 +0000 Fix spell-check failure Signed-off-by: Gaurav Aggarwal <[email protected]> commit 68889fd Author: Gaurav Aggarwal <[email protected]> Date: Fri Sep 10 23:20:36 2021 +0000 Update History.txt Signed-off-by: Gaurav Aggarwal <[email protected]> commit 99a5a5f Author: Gaurav Aggarwal <[email protected]> Date: Tue Aug 10 00:00:35 2021 -0700 Fix free secure context for Cortex-M23 ports Update the branching condition to correctly free secure context when there is one. Signed-off-by: Gaurav Aggarwal <[email protected]> commit 06ea727 Author: Gaurav Aggarwal <[email protected]> Date: Wed Aug 4 15:00:47 2021 -0700 Implement secure stack sealing as per ARM's recommendation Signed-off-by: Gaurav Aggarwal <[email protected]> commit 61f7560 Author: Gaurav Aggarwal <[email protected]> Date: Wed Aug 4 14:57:45 2021 -0700 Associate secure context with task handle The secure side context management code now checks that the secure context being saved or restored belongs to the task being switched-out or switched-in respectively. Signed-off-by: Gaurav Aggarwal <[email protected]> commit ccaa0f4 Author: Gaurav Aggarwal <[email protected]> Date: Wed Aug 4 14:52:22 2021 -0700 Pre-allocate secure-side context structures This commit improves ARMv8-M security by pre-allocating secure-side task context structures and changing how tasks reference a secure-side context structure when calling a secure function. The new configuration constant secureconfigMAX_SECURE_CONTEXTS sets the number of secure context structures to pre-allocate. secureconfigMAX_SECURE_CONTEXTS defaults to 8 if left undefined. Signed-off-by: Gaurav Aggarwal <[email protected]> commit f8ada39 Author: Zim Kalinowski <[email protected]> Date: Wed Sep 8 03:03:12 2021 +0800 Replace <pre> with @code - remaining files (FreeRTOS#388) Co-authored-by: Paul Bartell <[email protected]> Co-authored-by: Ming Yue <[email protected]> commit fa0f5c4 Author: Gaurav-Aggarwal-AWS <[email protected]> Date: Wed Sep 1 15:38:07 2021 -0700 Add freertos_risc_v_chip_specific_extensions.h for 64-bit ports (FreeRTOS#385) * Add freertos_risc_v_chip_specific_extensions.h for 64-bit ports Signed-off-by: Gaurav Aggarwal <[email protected]> commit bb02cf6 Author: Zim Kalinowski <[email protected]> Date: Wed Sep 1 02:24:56 2021 +0800 minor fix in stream buffer doc (FreeRTOS#387) Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]> commit ae73f0d Author: Zim Kalinowski <[email protected]> Date: Wed Sep 1 00:04:36 2021 +0800 Replace <pre> with @code{c} (FreeRTOS#386) * replace <pre> with @code{c} * endcode must pass spellcheck commit c290780 Author: sherryzhang <[email protected]> Date: Fri Aug 27 14:07:58 2021 +0800 Update the README to align with TF-Mv1.4.0 in TF-M integration (FreeRTOS#384) Change-Id: I41fc8e18657086e86eacd38ed70f474555739a3c Signed-off-by: Sherry Zhang <[email protected]> commit 0b1e9d7 Author: Zim Kalinowski <[email protected]> Date: Fri Aug 13 09:15:57 2021 +0800 fixes in queue documentation (FreeRTOS#382) Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]> commit 6ba8aa6 Author: Shubham Kulkarni <[email protected]> Date: Fri Aug 13 06:16:25 2021 +0530 Xtensa_ESP32: Fix build issues when external SPIRAM is enabled (FreeRTOS#381) Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]> commit d858d1f Author: Paul Adelsbach <[email protected]> Date: Thu Aug 12 17:06:41 2021 -0700 fix example usage of xMessageBufferCreateStatic and xStreamBufferCrea… (FreeRTOS#380) Example usage is actually correct, so remove the -1. but update the incorrect parameter description for pucStreamBufferStorageArea and pucMessageBufferStorageArea. commit d018018 Author: Jack Lam <[email protected]> Date: Fri Aug 13 02:50:52 2021 +0800 Tidy up the 8051 sdcc port (FreeRTOS#376) * Tidy up the 8051 sdcc port * Replace tabs with spaces in SDCC Cygnal port.c file. Co-authored-by: John Lin <[email protected]> Co-authored-by: Paul Bartell <[email protected]> commit 1b38078 Author: Zim Kalinowski <[email protected]> Date: Fri Aug 13 02:18:53 2021 +0800 fixed parameter names documentation (FreeRTOS#378) commit b97bb48 Author: RichardBarry <[email protected]> Date: Wed Aug 4 10:05:23 2021 -0700 Indent contents of a taskENTER_CRITICAL/taskEXIT_CRITICAL block. (FreeRTOS#348) * Indent contents of a taskENTER_CRITICAL/taskEXIT_CRITICAL block. Move a few configASSERT() statements out of a path where they would always be triggered to prevent "condition is always true" compiler warnings. * Replace configASSERT() positions due to unintended semantic change from the version where asserts were at the top of the file. Co-authored-by: RichardBarry <[email protected]> Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]> commit ce81bcb Author: alfred gedeon <[email protected]> Date: Wed Jul 28 17:53:10 2021 -0700 Run uncrustify with github workflows (FreeRTOS#369) * uncrustify with github workflows * Fix find expression * Add uncrustify configuration file * Uncrustify some files * uncrustify some more files * uncrustify more files * Fix whitespace at end of lines Co-authored-by: Cobus van Eeden <[email protected]> commit 85a2312 Author: Gaurav-Aggarwal-AWS <[email protected]> Date: Wed Jul 28 10:37:51 2021 -0700 Add ReadMe for third party port contributions (FreeRTOS#371) * Add ReadMe for third party port contributions Signed-off-by: Gaurav Aggarwal <[email protected]> commit d9d5d53 Author: Craig Kewley <[email protected]> Date: Wed Jul 21 01:21:18 2021 +0100 doc: fix function name typo (FreeRTOS#368) commit b5a9229 Author: Kristine Jassmann <[email protected]> Date: Tue Jul 20 15:55:49 2021 -0400 Warning fixes. (FreeRTOS#356) * Use cast to fix warnings. * Remove all empty definitions of portCLEAN_UP_TCB( pxTCB ) and portALLOCATE_SECURE_CONTEXT( ulSecureStackSize ) from ports. When these are undefined, the default empty definition is defined in FreeRTOS.h. commit 236a458 Author: Lasse Fröhner <[email protected]> Date: Fri Jun 18 15:48:24 2021 +0000 Change ucHeap[] To Pointer Type commit 6768094 Author: Lasse Fröhner <[email protected]> Date: Wed Jun 9 11:32:17 2021 +0000 Omit configTOTAL_HEAP_SIZE with Application Allocated Heap See FreeRTOS#347 commit 763f1b8 Merge: f31a1ac 1d86b97 Author: Lasse Fröhner <[email protected]> Date: Sat Jul 17 13:32:47 2021 +0200 Merge branch 'main' into 347-omit-size-in-extern-uint8t-ucHeap commit f31a1ac Author: Lasse Fröhner <[email protected]> Date: Fri Jun 18 15:48:24 2021 +0000 Change ucHeap[] To Pointer Type commit a7eb292 Merge: 0780328 6a84f2c Author: Lasse Fröhner <[email protected]> Date: Sat Jun 12 14:56:18 2021 +0200 Merge branch 'main' into 347-omit-size-in-extern-uint8t-ucHeap commit 0780328 Merge: d687545 bad8f01 Author: Lasse Fröhner <[email protected]> Date: Thu Jun 10 23:26:09 2021 +0200 Merge branch 'main' into 347-omit-size-in-extern-uint8t-ucHeap commit d687545 Author: Lasse Fröhner <[email protected]> Date: Wed Jun 9 11:32:17 2021 +0000 Omit configTOTAL_HEAP_SIZE with Application Allocated Heap See FreeRTOS#347
commit a030d0a Author: swaldhoer <[email protected]> Date: Thu Oct 7 00:32:07 2021 +0200 fix typo (FreeRTOS#399) commit 1fb4e84 Author: Qikai <[email protected]> Date: Tue Oct 5 02:15:00 2021 +0800 Fix the defect that Heap_1.c may waste first portBYTE_ALIGNMENT bytes of ucHeap[] (FreeRTOS#238) * Fix the defect that Heap_1.c may waste first 8 bytes of ucHeap[] * Fix the same byte waste issue in heap_2 commit 5f290e4 Author: Andres O. Vela <[email protected]> Date: Thu Sep 30 19:18:47 2021 +0200 Fix typo in comment (FreeRTOS#398) commit 741185f Author: Shubham Kulkarni <[email protected]> Date: Fri Sep 17 02:46:22 2021 +0530 Xtensa_ESP32: Add definition for portMEMORY_BARRIER (FreeRTOS#395) This fixes crash observed in Amazon FreeRTOS when optimisations are enabled commit 1b86b39 Author: Gaurav-Aggarwal-AWS <[email protected]> Date: Tue Sep 14 19:25:46 2021 -0700 Remove AVR ports from main repo (FreeRTOS#394) These ports now exist in the https://github.com/FreeRTOS/FreeRTOS-Kernel-Partner-Supported-Ports repo. Signed-off-by: Gaurav Aggarwal <[email protected]> commit 384ffc5 Author: Gaurav Aggarwal <[email protected]> Date: Fri Sep 10 23:27:12 2021 +0000 Fix spell-check failure Signed-off-by: Gaurav Aggarwal <[email protected]> commit 68889fd Author: Gaurav Aggarwal <[email protected]> Date: Fri Sep 10 23:20:36 2021 +0000 Update History.txt Signed-off-by: Gaurav Aggarwal <[email protected]> commit 99a5a5f Author: Gaurav Aggarwal <[email protected]> Date: Tue Aug 10 00:00:35 2021 -0700 Fix free secure context for Cortex-M23 ports Update the branching condition to correctly free secure context when there is one. Signed-off-by: Gaurav Aggarwal <[email protected]> commit 06ea727 Author: Gaurav Aggarwal <[email protected]> Date: Wed Aug 4 15:00:47 2021 -0700 Implement secure stack sealing as per ARM's recommendation Signed-off-by: Gaurav Aggarwal <[email protected]> commit 61f7560 Author: Gaurav Aggarwal <[email protected]> Date: Wed Aug 4 14:57:45 2021 -0700 Associate secure context with task handle The secure side context management code now checks that the secure context being saved or restored belongs to the task being switched-out or switched-in respectively. Signed-off-by: Gaurav Aggarwal <[email protected]> commit ccaa0f4 Author: Gaurav Aggarwal <[email protected]> Date: Wed Aug 4 14:52:22 2021 -0700 Pre-allocate secure-side context structures This commit improves ARMv8-M security by pre-allocating secure-side task context structures and changing how tasks reference a secure-side context structure when calling a secure function. The new configuration constant secureconfigMAX_SECURE_CONTEXTS sets the number of secure context structures to pre-allocate. secureconfigMAX_SECURE_CONTEXTS defaults to 8 if left undefined. Signed-off-by: Gaurav Aggarwal <[email protected]> commit f8ada39 Author: Zim Kalinowski <[email protected]> Date: Wed Sep 8 03:03:12 2021 +0800 Replace <pre> with @code - remaining files (FreeRTOS#388) Co-authored-by: Paul Bartell <[email protected]> Co-authored-by: Ming Yue <[email protected]> commit fa0f5c4 Author: Gaurav-Aggarwal-AWS <[email protected]> Date: Wed Sep 1 15:38:07 2021 -0700 Add freertos_risc_v_chip_specific_extensions.h for 64-bit ports (FreeRTOS#385) * Add freertos_risc_v_chip_specific_extensions.h for 64-bit ports Signed-off-by: Gaurav Aggarwal <[email protected]> commit bb02cf6 Author: Zim Kalinowski <[email protected]> Date: Wed Sep 1 02:24:56 2021 +0800 minor fix in stream buffer doc (FreeRTOS#387) Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]> commit ae73f0d Author: Zim Kalinowski <[email protected]> Date: Wed Sep 1 00:04:36 2021 +0800 Replace <pre> with @code{c} (FreeRTOS#386) * replace <pre> with @code{c} * endcode must pass spellcheck commit c290780 Author: sherryzhang <[email protected]> Date: Fri Aug 27 14:07:58 2021 +0800 Update the README to align with TF-Mv1.4.0 in TF-M integration (FreeRTOS#384) Change-Id: I41fc8e18657086e86eacd38ed70f474555739a3c Signed-off-by: Sherry Zhang <[email protected]> commit 0b1e9d7 Author: Zim Kalinowski <[email protected]> Date: Fri Aug 13 09:15:57 2021 +0800 fixes in queue documentation (FreeRTOS#382) Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]> commit 6ba8aa6 Author: Shubham Kulkarni <[email protected]> Date: Fri Aug 13 06:16:25 2021 +0530 Xtensa_ESP32: Fix build issues when external SPIRAM is enabled (FreeRTOS#381) Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]> commit d858d1f Author: Paul Adelsbach <[email protected]> Date: Thu Aug 12 17:06:41 2021 -0700 fix example usage of xMessageBufferCreateStatic and xStreamBufferCrea… (FreeRTOS#380) Example usage is actually correct, so remove the -1. but update the incorrect parameter description for pucStreamBufferStorageArea and pucMessageBufferStorageArea. commit d018018 Author: Jack Lam <[email protected]> Date: Fri Aug 13 02:50:52 2021 +0800 Tidy up the 8051 sdcc port (FreeRTOS#376) * Tidy up the 8051 sdcc port * Replace tabs with spaces in SDCC Cygnal port.c file. Co-authored-by: John Lin <[email protected]> Co-authored-by: Paul Bartell <[email protected]> commit 1b38078 Author: Zim Kalinowski <[email protected]> Date: Fri Aug 13 02:18:53 2021 +0800 fixed parameter names documentation (FreeRTOS#378) commit b97bb48 Author: RichardBarry <[email protected]> Date: Wed Aug 4 10:05:23 2021 -0700 Indent contents of a taskENTER_CRITICAL/taskEXIT_CRITICAL block. (FreeRTOS#348) * Indent contents of a taskENTER_CRITICAL/taskEXIT_CRITICAL block. Move a few configASSERT() statements out of a path where they would always be triggered to prevent "condition is always true" compiler warnings. * Replace configASSERT() positions due to unintended semantic change from the version where asserts were at the top of the file. Co-authored-by: RichardBarry <[email protected]> Co-authored-by: Gaurav-Aggarwal-AWS <[email protected]> commit ce81bcb Author: alfred gedeon <[email protected]> Date: Wed Jul 28 17:53:10 2021 -0700 Run uncrustify with github workflows (FreeRTOS#369) * uncrustify with github workflows * Fix find expression * Add uncrustify configuration file * Uncrustify some files * uncrustify some more files * uncrustify more files * Fix whitespace at end of lines Co-authored-by: Cobus van Eeden <[email protected]> commit 85a2312 Author: Gaurav-Aggarwal-AWS <[email protected]> Date: Wed Jul 28 10:37:51 2021 -0700 Add ReadMe for third party port contributions (FreeRTOS#371) * Add ReadMe for third party port contributions Signed-off-by: Gaurav Aggarwal <[email protected]> commit d9d5d53 Author: Craig Kewley <[email protected]> Date: Wed Jul 21 01:21:18 2021 +0100 doc: fix function name typo (FreeRTOS#368) commit b5a9229 Author: Kristine Jassmann <[email protected]> Date: Tue Jul 20 15:55:49 2021 -0400 Warning fixes. (FreeRTOS#356) * Use cast to fix warnings. * Remove all empty definitions of portCLEAN_UP_TCB( pxTCB ) and portALLOCATE_SECURE_CONTEXT( ulSecureStackSize ) from ports. When these are undefined, the default empty definition is defined in FreeRTOS.h.
…ext_t * in send/recv (FreeRTOS#356) This removes a warning involving const qualifiers. The NetworkContext_t * cannot be declared as const in TransportRecv and TransportSend because mbedtls_ssl_write and mbedtls_ssl_read require non-const pointers. Therefore, the const qualifier is removed from transport_interface.h.
…TOS#358) Because the const qualifier was removed in PR FreeRTOS#356, coreMQTT also needs to be updated to remove it.
Warning fixes in timers.c and tasks.c
Description
Fixes the following warnings:
Test Steps
Build using GCC (gcc-arm-none-eabi-9-2020-q2-update) with all warnings enabled.
Related Issue
See above. I have not made a GitHub issue, but I will if you request it.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.