]> begriffs open source - freertos/commit
Enable building the GCC Cortex-R5 port without an FPU (#586)
authorPaul Bartell <pbartell@amazon.com>
Mon, 6 Mar 2023 16:19:28 +0000 (08:19 -0800)
committerGitHub <noreply@github.com>
Mon, 6 Mar 2023 16:19:28 +0000 (21:49 +0530)
commit7b26ea6263d795bd1090eac60d63a29080934f2f
tree81ee7c6205172cf1a08fed1a63027f9b1921bb0a
parent563c57e7dab713aa1e289795c44549239f732a43
Enable building the GCC Cortex-R5 port without an FPU (#586)

* Ensure configUSE_TASK_FPU_SUPPORT option is set correctly

If one does enable the FPU of the Cortex-R5 processor, then the GCC
compiler will define the macro __ARM_FP. This can be used to ensure,
that the configUSE_TASK_FPU_SUPPORT is set accordingly.

* Enable the implementation of vPortTaskUsesFPU only if configUSE_TASK_FPU_SUPPORT is set to 1

* Remove error case in pxPortInitialiseStack

The case of configUSE_TASK_FPU_SUPPORT is 0 is now handled

* Enable access to FPU registers only if FPU is enabled

* Make minor formating changes

* Format ARM Cortex-R5 port

* Address review comments from @ChristosZosi

* Minor code review suggestions

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

Signed-off-by: Gaurav Aggarwal <aggarg@amazon.com>
Co-authored-by: Christos Zosimidis <christos.zosimidis@gmail.com>
Co-authored-by: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com>
Co-authored-by: Gaurav Aggarwal <aggarg@amazon.com>
portable/GCC/ARM_CR5/port.c
portable/GCC/ARM_CR5/portASM.S
portable/GCC/ARM_CR5/portmacro.h