Skip to content

Commit ca9f1cc

Browse files
authored
Merge branch 'main' into ARM_CRx_MPU
2 parents db8f233 + 57a5ed7 commit ca9f1cc

File tree

22 files changed

+158
-145
lines changed

22 files changed

+158
-145
lines changed

include/task.h

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@
5353
* The tskKERNEL_VERSION_MAJOR, tskKERNEL_VERSION_MINOR, tskKERNEL_VERSION_BUILD
5454
* values will reflect the last released version number.
5555
*/
56-
#define tskKERNEL_VERSION_NUMBER "V10.4.4+"
57-
#define tskKERNEL_VERSION_MAJOR 10
58-
#define tskKERNEL_VERSION_MINOR 4
59-
#define tskKERNEL_VERSION_BUILD 4
56+
#define tskKERNEL_VERSION_NUMBER "V11.0.1+"
57+
#define tskKERNEL_VERSION_MAJOR 11
58+
#define tskKERNEL_VERSION_MINOR 0
59+
#define tskKERNEL_VERSION_BUILD 1
6060

6161
/* MPU region parameters passed in ulParameters
6262
* of MemoryRegion_t struct. */
@@ -3574,9 +3574,7 @@ TaskHandle_t xTaskGetCurrentTaskHandle( void ) PRIVILEGED_FUNCTION;
35743574
/*
35753575
* Return the handle of the task running on specified core.
35763576
*/
3577-
#if ( configNUMBER_OF_CORES > 1 )
3578-
TaskHandle_t xTaskGetCurrentTaskHandleForCore( BaseType_t xCoreID ) PRIVILEGED_FUNCTION;
3579-
#endif
3577+
TaskHandle_t xTaskGetCurrentTaskHandleForCore( BaseType_t xCoreID ) PRIVILEGED_FUNCTION;
35803578

35813579
/*
35823580
* Shortcut used by the queue implementation to prevent unnecessary call to

manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
name : "FreeRTOS-Kernel"
2-
version: "v10.5.1"
2+
version: "v11.0.1+"
33
description: "FreeRTOS Kernel."
44
license: "MIT"

portable/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ add_library(freertos_kernel_port OBJECT
6868

6969
# ARMv8-A ports for GCC
7070
$<$<STREQUAL:${FREERTOS_PORT},GCC_ARM_AARCH64>:
71-
GCC/Arm_AARCH64/port.c
72-
GCC/Arm_AARCH64/portASM.S>
71+
GCC/ARM_AARCH64/port.c
72+
GCC/ARM_AARCH64/portASM.S>
7373

7474
$<$<STREQUAL:${FREERTOS_PORT},GCC_ARM_AARCH64_SRE>:
75-
GCC/Arm_AARCH64_SRE/port.c
76-
GCC/Arm_AARCH64_SRE/portASM.S>
75+
GCC/ARM_AARCH64_SRE/port.c
76+
GCC/ARM_AARCH64_SRE/portASM.S>
7777

7878
# ARMv6-M port for GCC
7979
$<$<STREQUAL:${FREERTOS_PORT},GCC_ARM_CM0>:

portable/Common/mpu_wrappers_v2.c

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -92,16 +92,16 @@
9292
/**
9393
* @brief Checks whether an external index is valid or not.
9494
*/
95-
#define IS_EXTERNAL_INDEX_VALID( lIndex ) \
96-
( ( ( lIndex ) >= INDEX_OFFSET ) && \
97-
( ( lIndex ) < ( configPROTECTED_KERNEL_OBJECT_POOL_SIZE + INDEX_OFFSET ) ) )
95+
#define IS_EXTERNAL_INDEX_VALID( lIndex ) \
96+
( ( ( ( lIndex ) >= INDEX_OFFSET ) && \
97+
( ( lIndex ) < ( configPROTECTED_KERNEL_OBJECT_POOL_SIZE + INDEX_OFFSET ) ) ) ? pdTRUE : pdFALSE )
9898

9999
/**
100100
* @brief Checks whether an internal index is valid or not.
101101
*/
102-
#define IS_INTERNAL_INDEX_VALID( lIndex ) \
103-
( ( ( lIndex ) >= 0 ) && \
104-
( ( lIndex ) < ( configPROTECTED_KERNEL_OBJECT_POOL_SIZE ) ) )
102+
#define IS_INTERNAL_INDEX_VALID( lIndex ) \
103+
( ( ( ( lIndex ) >= 0 ) && \
104+
( ( lIndex ) < ( configPROTECTED_KERNEL_OBJECT_POOL_SIZE ) ) ) ? pdTRUE : pdFALSE )
105105

106106
/**
107107
* @brief Converts an internal index into external.
@@ -2197,7 +2197,7 @@
21972197
if( ( !( ( pvItemToQueue == NULL ) && ( uxQueueItemSize != ( UBaseType_t ) 0U ) ) ) &&
21982198
( !( ( xCopyPosition == queueOVERWRITE ) && ( uxQueueLength != ( UBaseType_t ) 1U ) ) )
21992199
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
2200-
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) )
2200+
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0U ) ) )
22012201
#endif
22022202
)
22032203
{
@@ -2312,7 +2312,7 @@
23122312

23132313
if( ( !( ( ( pvBuffer ) == NULL ) && ( uxQueueItemSize != ( UBaseType_t ) 0U ) ) )
23142314
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
2315-
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) )
2315+
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0U ) ) )
23162316
#endif
23172317
)
23182318
{
@@ -2364,7 +2364,7 @@
23642364

23652365
if( ( !( ( ( pvBuffer ) == NULL ) && ( uxQueueItemSize != ( UBaseType_t ) 0U ) ) )
23662366
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
2367-
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) )
2367+
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0U ) ) )
23682368
#endif
23692369
)
23702370
{
@@ -2411,9 +2411,9 @@
24112411
{
24122412
uxQueueItemSize = uxQueueGetQueueItemSize( xInternalQueueHandle );
24132413

2414-
if( ( uxQueueItemSize == 0 )
2414+
if( ( uxQueueItemSize == 0U )
24152415
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
2416-
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) )
2416+
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0U ) ) )
24172417
#endif
24182418
)
24192419
{
@@ -3906,10 +3906,10 @@
39063906

39073907
if( xAreParamsReadable == pdTRUE )
39083908
{
3909-
if( ( ( pxParams->uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0 ) &&
3910-
( pxParams->uxBitsToWaitFor != 0 )
3909+
if( ( ( pxParams->uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0U ) &&
3910+
( pxParams->uxBitsToWaitFor != 0U )
39113911
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
3912-
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( pxParams->xTicksToWait != 0 ) ) )
3912+
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( pxParams->xTicksToWait != 0U ) ) )
39133913
#endif
39143914
)
39153915
{
@@ -3951,7 +3951,7 @@
39513951
int32_t lIndex;
39523952
BaseType_t xCallingTaskIsAuthorizedToAccessEventGroup = pdFALSE;
39533953

3954-
if( ( uxBitsToClear & eventEVENT_BITS_CONTROL_BYTES ) == 0 )
3954+
if( ( uxBitsToClear & eventEVENT_BITS_CONTROL_BYTES ) == 0U )
39553955
{
39563956
lIndex = ( int32_t ) xEventGroup;
39573957

@@ -3986,7 +3986,7 @@
39863986
int32_t lIndex;
39873987
BaseType_t xCallingTaskIsAuthorizedToAccessEventGroup = pdFALSE;
39883988

3989-
if( ( uxBitsToSet & eventEVENT_BITS_CONTROL_BYTES ) == 0 )
3989+
if( ( uxBitsToSet & eventEVENT_BITS_CONTROL_BYTES ) == 0U )
39903990
{
39913991
lIndex = ( int32_t ) xEventGroup;
39923992

@@ -4025,10 +4025,10 @@
40254025
int32_t lIndex;
40264026
BaseType_t xCallingTaskIsAuthorizedToAccessEventGroup = pdFALSE;
40274027

4028-
if( ( ( uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0 ) &&
4029-
( uxBitsToWaitFor != 0 )
4028+
if( ( ( uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0U ) &&
4029+
( uxBitsToWaitFor != 0U )
40304030
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
4031-
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) )
4031+
&& ( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0U ) ) )
40324032
#endif
40334033
)
40344034
{

portable/GCC/Arm_AARCH64/README.md renamed to portable/GCC/ARM_AARCH64/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ the T32 and A32 instruction sets. Follow the
1313
[link](https://developer.arm.com/Architectures/A-Profile%20Architecture)
1414
for more information.
1515

16-
## Arm_AARCH64 port
16+
## ARM_AARCH64 port
1717

1818
This port adds support for Armv8-A architecture AArch64 execution state.
1919
This port is generic and can be used as a starting point for Armv8-A
2020
application processors.
2121

22-
* Arm_AARCH64
22+
* ARM_AARCH64
2323
* Memory mapped interace to access Arm GIC registers
File renamed without changes.
File renamed without changes.
File renamed without changes.

portable/GCC/Arm_AARCH64_SRE/README.md renamed to portable/GCC/ARM_AARCH64_SRE/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ the T32 and A32 instruction sets. Follow the
1313
[link](https://developer.arm.com/Architectures/A-Profile%20Architecture)
1414
for more information.
1515

16-
## Arm_AARCH64_SRE port
16+
## ARM_AARCH64_SRE port
1717

1818
This port adds support for Armv8-A architecture AArch64 execution state.
1919
This port is generic and can be used as a starting point for Armv8-A
2020
application processors.
2121

22-
* Arm_AARCH64_SRE
22+
* ARM_AARCH64_SRE
2323
* System Register interace to access Arm GIC registers
File renamed without changes.

0 commit comments

Comments
 (0)