-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
armv8.1-m: Remove portHAS_PACBTI_FEATURE macro (#1192)
The PACBTI is an optional hardware security feature, the current implementation assumes that every SoC that has Armv8.1-M architecture extension, has the PACBTI hardware feature, which does not have to be the case. Hence, the `portHAS_PACBTI_FEATURE` is removed and the implementation is modified to rely on `configENABLE_PAC` and `configENABLE_BTI` macros that can either be set using CMake or FreeRTOSConfig.h header file. Enabling PAC and/or BTI on a port variant that doesn't have the PACBTI hardware feature would be caught by a `configASSERT` statement. Signed-off-by: Ahmed Ismail <[email protected]> Co-authored-by: Tony Josi <[email protected]>
- Loading branch information
1 parent
73f6e3a
commit 25f9222
Showing
56 changed files
with
257 additions
and
445 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
/* | ||
* FreeRTOS Kernel <DEVELOPMENT BRANCH> | ||
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* Copyright 2024 Arm Limited and/or its affiliates | ||
* <[email protected]> | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
|
@@ -53,7 +51,6 @@ | |
#define portARCH_NAME "Cortex-M23" | ||
#define portHAS_ARMV8M_MAIN_EXTENSION 0 | ||
#define portARMV8M_MINOR_VERSION 0 | ||
#define portHAS_PACBTI_FEATURE 0 | ||
#define portDONT_DISCARD __attribute__( ( used ) ) | ||
/*-----------------------------------------------------------*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
/* | ||
* FreeRTOS Kernel <DEVELOPMENT BRANCH> | ||
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* Copyright 2024 Arm Limited and/or its affiliates | ||
* <[email protected]> | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
|
@@ -53,7 +51,6 @@ | |
#define portARCH_NAME "Cortex-M23" | ||
#define portHAS_ARMV8M_MAIN_EXTENSION 0 | ||
#define portARMV8M_MINOR_VERSION 0 | ||
#define portHAS_PACBTI_FEATURE 0 | ||
#define portDONT_DISCARD __attribute__( ( used ) ) | ||
/*-----------------------------------------------------------*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
/* | ||
* FreeRTOS Kernel <DEVELOPMENT BRANCH> | ||
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* Copyright 2024 Arm Limited and/or its affiliates | ||
* <[email protected]> | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
|
@@ -53,7 +51,6 @@ | |
#define portARCH_NAME "Cortex-M33" | ||
#define portHAS_ARMV8M_MAIN_EXTENSION 1 | ||
#define portARMV8M_MINOR_VERSION 0 | ||
#define portHAS_PACBTI_FEATURE 0 | ||
#define portDONT_DISCARD __attribute__( ( used ) ) | ||
/*-----------------------------------------------------------*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
/* | ||
* FreeRTOS Kernel <DEVELOPMENT BRANCH> | ||
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* Copyright 2024 Arm Limited and/or its affiliates | ||
* <[email protected]> | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
|
@@ -53,7 +51,6 @@ | |
#define portARCH_NAME "Cortex-M33" | ||
#define portHAS_ARMV8M_MAIN_EXTENSION 1 | ||
#define portARMV8M_MINOR_VERSION 0 | ||
#define portHAS_PACBTI_FEATURE 0 | ||
#define portDONT_DISCARD __attribute__( ( used ) ) | ||
/*-----------------------------------------------------------*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
/* | ||
* FreeRTOS Kernel <DEVELOPMENT BRANCH> | ||
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* Copyright 2024 Arm Limited and/or its affiliates | ||
* <[email protected]> | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
|
@@ -53,7 +51,6 @@ | |
#define portARCH_NAME "Cortex-M35P" | ||
#define portHAS_ARMV8M_MAIN_EXTENSION 1 | ||
#define portARMV8M_MINOR_VERSION 0 | ||
#define portHAS_PACBTI_FEATURE 0 | ||
#define portDONT_DISCARD __attribute__( ( used ) ) | ||
/*-----------------------------------------------------------*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
/* | ||
* FreeRTOS Kernel <DEVELOPMENT BRANCH> | ||
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* Copyright 2024 Arm Limited and/or its affiliates | ||
* <[email protected]> | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
|
@@ -58,7 +56,6 @@ | |
#define portARCH_NAME "Cortex-M55" | ||
#define portHAS_ARMV8M_MAIN_EXTENSION 1 | ||
#define portARMV8M_MINOR_VERSION 1 | ||
#define portHAS_PACBTI_FEATURE 0 | ||
#define portDONT_DISCARD __attribute__( ( used ) ) | ||
/*-----------------------------------------------------------*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
/* | ||
* FreeRTOS Kernel <DEVELOPMENT BRANCH> | ||
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* Copyright 2024 Arm Limited and/or its affiliates | ||
* <[email protected]> | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
|
@@ -58,7 +56,6 @@ | |
#define portARCH_NAME "Cortex-M85" | ||
#define portHAS_ARMV8M_MAIN_EXTENSION 1 | ||
#define portARMV8M_MINOR_VERSION 1 | ||
#define portHAS_PACBTI_FEATURE 1 | ||
#define portDONT_DISCARD __attribute__( ( used ) ) | ||
/*-----------------------------------------------------------*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
/* | ||
* FreeRTOS Kernel <DEVELOPMENT BRANCH> | ||
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* Copyright 2024 Arm Limited and/or its affiliates | ||
* <[email protected]> | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
|
@@ -53,7 +51,6 @@ | |
#define portARCH_NAME "Cortex-M23" | ||
#define portHAS_ARMV8M_MAIN_EXTENSION 0 | ||
#define portARMV8M_MINOR_VERSION 0 | ||
#define portHAS_PACBTI_FEATURE 0 | ||
#define portDONT_DISCARD __root | ||
/*-----------------------------------------------------------*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
/* | ||
* FreeRTOS Kernel <DEVELOPMENT BRANCH> | ||
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* Copyright 2024 Arm Limited and/or its affiliates | ||
* <[email protected]> | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
|
@@ -53,7 +51,6 @@ | |
#define portARCH_NAME "Cortex-M23" | ||
#define portHAS_ARMV8M_MAIN_EXTENSION 0 | ||
#define portARMV8M_MINOR_VERSION 0 | ||
#define portHAS_PACBTI_FEATURE 0 | ||
#define portDONT_DISCARD __root | ||
/*-----------------------------------------------------------*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
/* | ||
* FreeRTOS Kernel <DEVELOPMENT BRANCH> | ||
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* Copyright 2024 Arm Limited and/or its affiliates | ||
* <[email protected]> | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
|
@@ -53,7 +51,6 @@ | |
#define portARCH_NAME "Cortex-M33" | ||
#define portHAS_ARMV8M_MAIN_EXTENSION 1 | ||
#define portARMV8M_MINOR_VERSION 0 | ||
#define portHAS_PACBTI_FEATURE 0 | ||
#define portDONT_DISCARD __root | ||
/*-----------------------------------------------------------*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
/* | ||
* FreeRTOS Kernel <DEVELOPMENT BRANCH> | ||
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* Copyright 2024 Arm Limited and/or its affiliates | ||
* <[email protected]> | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
|
@@ -53,7 +51,6 @@ | |
#define portARCH_NAME "Cortex-M33" | ||
#define portHAS_ARMV8M_MAIN_EXTENSION 1 | ||
#define portARMV8M_MINOR_VERSION 0 | ||
#define portHAS_PACBTI_FEATURE 0 | ||
#define portDONT_DISCARD __root | ||
/*-----------------------------------------------------------*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
/* | ||
* FreeRTOS Kernel <DEVELOPMENT BRANCH> | ||
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* Copyright 2024 Arm Limited and/or its affiliates | ||
* <[email protected]> | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
|
@@ -53,7 +51,6 @@ | |
#define portARCH_NAME "Cortex-M35P" | ||
#define portHAS_ARMV8M_MAIN_EXTENSION 1 | ||
#define portARMV8M_MINOR_VERSION 0 | ||
#define portHAS_PACBTI_FEATURE 0 | ||
#define portDONT_DISCARD __root | ||
/*-----------------------------------------------------------*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
/* | ||
* FreeRTOS Kernel <DEVELOPMENT BRANCH> | ||
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* Copyright 2024 Arm Limited and/or its affiliates | ||
* <[email protected]> | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
|
@@ -58,7 +56,6 @@ | |
#define portARCH_NAME "Cortex-M55" | ||
#define portHAS_ARMV8M_MAIN_EXTENSION 1 | ||
#define portARMV8M_MINOR_VERSION 1 | ||
#define portHAS_PACBTI_FEATURE 0 | ||
#define portDONT_DISCARD __root | ||
/*-----------------------------------------------------------*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
/* | ||
* FreeRTOS Kernel <DEVELOPMENT BRANCH> | ||
* Copyright (C) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* Copyright 2024 Arm Limited and/or its affiliates | ||
* <[email protected]> | ||
* | ||
* SPDX-License-Identifier: MIT | ||
* | ||
|
@@ -58,7 +56,6 @@ | |
#define portARCH_NAME "Cortex-M85" | ||
#define portHAS_ARMV8M_MAIN_EXTENSION 1 | ||
#define portARMV8M_MINOR_VERSION 1 | ||
#define portHAS_PACBTI_FEATURE 1 | ||
#define portDONT_DISCARD __root | ||
/*-----------------------------------------------------------*/ | ||
|
||
|
Oops, something went wrong.