]> begriffs open source - freertos/commit
Armv8.1-m: Add pacbti support (#1147)
authorAhmed Ismail <64546783+AhmedIsmail02@users.noreply.github.com>
Thu, 24 Oct 2024 06:25:16 +0000 (07:25 +0100)
committerGitHub <noreply@github.com>
Thu, 24 Oct 2024 06:25:16 +0000 (11:55 +0530)
commit7081e76f5a781f3b143d2e2f478292c52e14d6dc
treee9bb4058cb80d26c74c978baa1bd64fef2941c10
parente400cc93b753d0afe91a935bcffc7b0257c2ad8c
Armv8.1-m: Add pacbti support (#1147)

* copyright-checker: Add FreeRTOS Arm collab copyright

FreeRTOS Arm collab files shall have both Amazon's
and Arm's copyright headers. Hence, the copyright
checker is modified to check for both copyrights.

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
* armv8-m: Add support for IAR with TFM FREERTOS PORT

As the case for ARMClang, and GCC toolchains, IAR
with TFM FreeRTOS Port support is added.

Signed-off-by: Ahmed Ismail <Ahmed.Ismail@arm.com>
* armv8-m: Do not overwrite Control register value

The current ARMv8-M FreeRTOS-Kernel Port code
implementation is modified in a way that allows
the CONTROL register's value to be retained
rather than being overwritten.

This is needed for adding PACBTI support as
the special-purpose CONTROL register `PAC_EN`,
`UPAC_EN`, `BTI_EN`, and `UBTI_EN` PACBTI
enablement bits should be configured before calling
`vRestoreContextOfFirstTask()` function which currently
overwrite the value inside the CONTROL register.

Signed-off-by: Ahmed Ismail <Ahmed.Ismail@arm.com>
* armv8.1-m: Add PACBTI support to kernel non-secure implementation

In this commit, Pointer Authentication, and Branch Target
Identification Extension (PACBTI) support is added for
Non-Secure and Non-TrustZone variants of Cortex-M85
FreeRTOS-Kernel Port.

The PACBTI support is added for Arm Compiler For
Embedded, and IAR toolchains only. The support in
the kernel is not yet enabled for GNU toolchain
due to known issues.

Signed-off-by: Ahmed Ismail <Ahmed.Ismail@arm.com>
* Fix CI check

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
---------

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Signed-off-by: Ahmed Ismail <Ahmed.Ismail@arm.com>
Co-authored-by: Ahmed Ismail <ahmism01@e133373.arm.com>
Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
81 files changed:
.github/.cSpellWords.txt
.github/scripts/kernel_checker.py
CMakeLists.txt
examples/coverity/README.md
include/FreeRTOS.h
portable/ARMv8M/non_secure/port.c
portable/ARMv8M/non_secure/portable/GCC/ARM_CM23/portmacro.h
portable/ARMv8M/non_secure/portable/GCC/ARM_CM23_NTZ/portmacro.h
portable/ARMv8M/non_secure/portable/GCC/ARM_CM33/portasm.c
portable/ARMv8M/non_secure/portable/GCC/ARM_CM33/portmacro.h
portable/ARMv8M/non_secure/portable/GCC/ARM_CM33_NTZ/portasm.c
portable/ARMv8M/non_secure/portable/GCC/ARM_CM33_NTZ/portmacro.h
portable/ARMv8M/non_secure/portable/GCC/ARM_CM35P/portmacro.h
portable/ARMv8M/non_secure/portable/GCC/ARM_CM55/portmacro.h
portable/ARMv8M/non_secure/portable/GCC/ARM_CM85/portmacro.h
portable/ARMv8M/non_secure/portable/IAR/ARM_CM23/portmacro.h
portable/ARMv8M/non_secure/portable/IAR/ARM_CM23_NTZ/portmacro.h
portable/ARMv8M/non_secure/portable/IAR/ARM_CM33/portasm.s
portable/ARMv8M/non_secure/portable/IAR/ARM_CM33/portmacro.h
portable/ARMv8M/non_secure/portable/IAR/ARM_CM33_NTZ/portasm.s
portable/ARMv8M/non_secure/portable/IAR/ARM_CM33_NTZ/portmacro.h
portable/ARMv8M/non_secure/portable/IAR/ARM_CM35P/portmacro.h
portable/ARMv8M/non_secure/portable/IAR/ARM_CM55/portmacro.h
portable/ARMv8M/non_secure/portable/IAR/ARM_CM85/portmacro.h
portable/CMakeLists.txt
portable/GCC/ARM_CM23/non_secure/port.c
portable/GCC/ARM_CM23/non_secure/portmacro.h
portable/GCC/ARM_CM23_NTZ/non_secure/port.c
portable/GCC/ARM_CM23_NTZ/non_secure/portmacro.h
portable/GCC/ARM_CM33/non_secure/port.c
portable/GCC/ARM_CM33/non_secure/portasm.c
portable/GCC/ARM_CM33/non_secure/portmacro.h
portable/GCC/ARM_CM33_NTZ/non_secure/port.c
portable/GCC/ARM_CM33_NTZ/non_secure/portasm.c
portable/GCC/ARM_CM33_NTZ/non_secure/portmacro.h
portable/GCC/ARM_CM35P/non_secure/port.c
portable/GCC/ARM_CM35P/non_secure/portasm.c
portable/GCC/ARM_CM35P/non_secure/portmacro.h
portable/GCC/ARM_CM35P_NTZ/non_secure/port.c
portable/GCC/ARM_CM35P_NTZ/non_secure/portasm.c
portable/GCC/ARM_CM35P_NTZ/non_secure/portmacro.h
portable/GCC/ARM_CM55/non_secure/port.c
portable/GCC/ARM_CM55/non_secure/portasm.c
portable/GCC/ARM_CM55/non_secure/portmacro.h
portable/GCC/ARM_CM55_NTZ/non_secure/port.c
portable/GCC/ARM_CM55_NTZ/non_secure/portasm.c
portable/GCC/ARM_CM55_NTZ/non_secure/portmacro.h
portable/GCC/ARM_CM85/non_secure/port.c
portable/GCC/ARM_CM85/non_secure/portasm.c
portable/GCC/ARM_CM85/non_secure/portmacro.h
portable/GCC/ARM_CM85_NTZ/non_secure/port.c
portable/GCC/ARM_CM85_NTZ/non_secure/portasm.c
portable/GCC/ARM_CM85_NTZ/non_secure/portmacro.h
portable/IAR/ARM_CM23/non_secure/port.c
portable/IAR/ARM_CM23/non_secure/portmacro.h
portable/IAR/ARM_CM23_NTZ/non_secure/port.c
portable/IAR/ARM_CM23_NTZ/non_secure/portmacro.h
portable/IAR/ARM_CM33/non_secure/port.c
portable/IAR/ARM_CM33/non_secure/portasm.s
portable/IAR/ARM_CM33/non_secure/portmacro.h
portable/IAR/ARM_CM33_NTZ/non_secure/port.c
portable/IAR/ARM_CM33_NTZ/non_secure/portasm.s
portable/IAR/ARM_CM33_NTZ/non_secure/portmacro.h
portable/IAR/ARM_CM35P/non_secure/port.c
portable/IAR/ARM_CM35P/non_secure/portasm.s
portable/IAR/ARM_CM35P/non_secure/portmacro.h
portable/IAR/ARM_CM35P_NTZ/non_secure/port.c
portable/IAR/ARM_CM35P_NTZ/non_secure/portasm.s
portable/IAR/ARM_CM35P_NTZ/non_secure/portmacro.h
portable/IAR/ARM_CM55/non_secure/port.c
portable/IAR/ARM_CM55/non_secure/portasm.s
portable/IAR/ARM_CM55/non_secure/portmacro.h
portable/IAR/ARM_CM55_NTZ/non_secure/port.c
portable/IAR/ARM_CM55_NTZ/non_secure/portasm.s
portable/IAR/ARM_CM55_NTZ/non_secure/portmacro.h
portable/IAR/ARM_CM85/non_secure/port.c
portable/IAR/ARM_CM85/non_secure/portasm.s
portable/IAR/ARM_CM85/non_secure/portmacro.h
portable/IAR/ARM_CM85_NTZ/non_secure/port.c
portable/IAR/ARM_CM85_NTZ/non_secure/portasm.s
portable/IAR/ARM_CM85_NTZ/non_secure/portmacro.h