Michael Schwarcz
d3f7abdb7c
CMSIS/CORTEX-M: Don't build mbed_tz_context.c in TF-M targets
...
- TF-M v8m secure-side implements their own TZ context APIs so need to avoid building the Mbed implementation.
2019-01-10 18:06:56 +02:00
Martin Kojtal
e245c1ecda
Merge pull request #9150 from kjbracey-arm/armc6_fpu
...
Check correct ARMC6 predefine for FP codegen
2018-12-20 10:47:32 +00:00
Kevin Bracey
91f0be6ac3
Check correct ARMC6 predefine for FP codegen
...
For ARMC6, CMSIS headers were checking the `__ARM_PCS_VFP`, which
indicates hardfp ABI in use, when they need to check whether FP
code generation is enabled. Change this to `__ARM_FP`, so it
works for platforms using softfp ABI.
Change already present in CMSIS_5 repo, via commit
969822ae162539d50617d1e5a3634ee2fd3b60f6, but redone with local
search-and-replace.
2018-12-19 13:03:11 +02:00
Kevin Bracey
f04904c6e8
CM3: Make ACTLR bit definitions conditional
...
The ACTLR register itself is conditional on chip revision, but its
bit definitions were always defined.
Make the the bit definitions also conditional, so it is possible to
produce portable code that sets DISDEFWBUF if available:
#ifdef SCnSCB_ACTLR_DISDEFWBUF_Msk
SCnSCB->ACTLR |= SCnSCB_ACTLR_DISDEFWBUF_Msk;
#endif
(cherry-picked from CMSIS b2b04dbeece0a046556bfc320bef6b20bef3f16f)
2018-12-13 16:31:53 +02:00
Naveen Kaje
091010e9a2
mbed_fault_handler: fix build warning
...
Fixes warning
BUILD\NRF52840_DK\GCC_ARM\mbed-os\cmsis\TARGET_CORTEX_M\mbed_fault_handler.o
.\mbed-os\cmsis\TARGET_CORTEX_M\mbed_fault_handler.c
[Warning] mbed_fault_handler.c@149,5: implicit declaration
of function 'memcpy' [-Wimplicit-function-declaration]
2018-12-11 14:59:36 -06:00
Senthil Ramakrishnan
a07a373c9f
Change the reboot-max value semantics and code style and other fixes
2018-11-16 14:00:00 -06:00
Senthil Ramakrishnan
6181394e37
Error and fault handling changes for crash reporting
2018-11-16 13:59:59 -06:00
Kevin Bracey
82a90721eb
Fault handler: fix printf format specifiers
2018-10-31 14:49:21 +02:00
Senthil Ramakrishnan
230ba03582
Space optimization to fault handlers
2018-10-23 13:05:56 -05:00
Senthil Ramakrishnan
797538c854
Moving fault handlers under cmsis
2018-10-23 13:05:56 -05:00
Russ Butler
c13c3e30cd
Fix the CMSIS macro ARM_MPU_RASR
...
The update to CMSIS 5.4.0 broke the macro ARM_MPU_RASR. This patch
pulls in the upstream fix from CMSIS:
2ead2adffb (diff-e4bfba5228373d368ac2543d6e5bd4d0)
2018-09-18 17:50:21 -05:00
Russ Butler
308dfe3a53
Fix CMSIS __RESTRICT define for IAR
...
Revert the define __RESTRICT from "__restrict" to "restrict". This
fixes compilation for IAR.
2018-08-25 20:41:12 -05:00
Deepika
fb354752eb
CMSIS/RTX: Patch to conditionally compile
...
tz_context.c should be compiled only for secure world,
definition of API's in tz_context.h should be part of secure
binary/bootloader when building mbed-os as non-secure
(Cherry picked from d0a43b8af0
)
2018-08-25 20:41:10 -05:00
Bartek Szatkowski
ace5df9079
CMSIS/RTX: Reintroduce arm_math.h
...
(cherry picked from commit 6a6e3ac0eb
)
2018-08-25 20:41:10 -05:00
Russ Butler
342841aa0f
[CMSIS_5]: Updated to 0b521765
2018-08-25 20:41:00 -05:00
Oren Cohen
787317b7eb
Remove uVisor from mbed-os
2018-08-22 16:36:59 +03:00
Bartek Szatkowski
6a6e3ac0eb
CMSIS/RTX: Reintroduce arm_math.h
2018-05-14 12:18:21 +01:00
Jaeden Amero
cb2b91cac7
CMSIS/RTX: uVisor: Import v0.30.0
2018-05-14 12:18:21 +01:00
Bartek Szatkowski
8afbd66763
[CMSIS_5]: Updated to 49ac527a
2018-05-14 12:18:20 +01:00
Deepika
d0a43b8af0
CMSIS/RTX: Patch to conditionally compile
...
tz_context.c should be compiled only for secure world,
definition of API's in tz_context.h should be part of secure
binary/bootloader when building mbed-os as non-secure
2018-04-11 11:41:26 -05:00
Deepika
ae2e2b942b
Add TZ_context function
...
TZ_context functions are part of secure state binary and are used to handle
secure stack for thread execution.Template implementation from CMSIS is used,
can be enhanced in future.
2018-03-27 10:51:19 -05:00
Bartek Szatkowski
6e11dc2c4a
Modification to arm_math.h
...
Remove redefinition of __CLZ and __SSAT.
2017-11-10 09:53:42 +00:00
Bartek Szatkowski
106f34e2ed
Add arm_math.h
2017-11-10 09:53:42 +00:00
Bartek Szatkowski
20357bc1fa
CMSIS/RTX: Reintroduce core_cmSecureAccess.h lost during CMSIS update
2017-11-01 09:25:42 +00:00
Martin Kojtal
02d01f42a6
CSMIS/RTX: cmain IAR: add mbed main
...
This fixes #4602 issue, mbed_main should be invoked right before the real main
2017-11-01 09:25:42 +00:00
Bartek Szatkowski
a03591d6e3
CMSIS/RTX: Update CMSIS and RTX to 22b68c
...
This includes Cortex A support and directory reshuffle.
2017-11-01 09:25:42 +00:00
Deepika
9422c351e4
Initial RTX and tools support for Cortex M-23/M-33 devices
2017-09-11 11:43:26 -05:00
Bartek Szatkowski
7b022f8785
Modify CMSIS 5 so it is suitable for mbed-os
...
Make changes to the files taken from RTX5/CMSIS5 so they work
with mbed-os and uvisor.
2017-05-30 18:53:38 +01:00
Bartek Szatkowski
a9a29a4529
Pull in CMSIS 5 files
...
Pull in unmodified CMSIS5 files from the repository
https://github.com/ARM-software/CMSIS_5.git from the commit
c1b4232f4a98275dd79ebc99cf9b5da5053def4d.
The files were copied as shown below with source->dest_dir.
CMSIS_5/CMSIS/Core/Include/core_*.h -> mbed-os/cmsis/
CMSIS_5/CMSIS/Core_A/Include/core_*.h -> mbed-os/cmsis/
CMSIS_5/CMSIS/DSP/Include/arm_math.h -> mbed-os/cmsis/
CMSIS_5/CMSIS/Core/Include/tz_context.h -> mbed-os/cmsis/
CMSIS_5/CMSIS/Core/Include/cmsis_compiler.h -> mbed-os/cmsis/TARGET_CORTEX_M/
CMSIS_5/CMSIS/Core/Include/cmsis_arm*.h -> mbed-os/cmsis/TARGET_CORTEX_M/TOOLCHAIN_ARM/
CMSIS_5/CMSIS/Core/Include/cmsis_gcc*.h -> mbed-os/cmsis/TARGET_CORTEX_M/TOOLCHAIN_GCC/
CMSIS_5/CMSIS/Core_A/Include/cmsis_compiler.h -> mbed-os/cmsis/TARGET_CORTEX_A/
CMSIS_5/CMSIS/Core_A/Include/cmsis_arm*.h -> mbed-os/cmsis/TARGET_CORTEX_A/TOOLCHAIN_ARM/
CMSIS_5/CMSIS/RTOS2/RTX/Library/cmsis_os1.c -> mbed-os/rtos/rtx/
CMSIS_5/CMSIS/RTOS2/Include/cmsis_os2.h -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/
CMSIS_5/CMSIS/RTOS2/RTX/Config/* -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/
CMSIS_5/CMSIS/RTOS2/RTX/Include1/* -> mbed-os/rtos/rtx/
CMSIS_5/CMSIS/RTOS2/RTX/Include/* -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/
CMSIS_5/CMSIS/RTOS2/RTX/Source/rtx_* -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/
CMSIS_5/CMSIS/RTOS2/RTX/Source/core_cm.h -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/
CMSIS_5/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_M0/TOOLCHAIN_ARM/
CMSIS_5/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_M0/TOOLCHAIN_GCC/
CMSIS_5/CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_M0/TOOLCHAIN_IAR/
CMSIS_5/CMSIS/RTOS2/RTX/Source/ARM/irq_cm0.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_M0P/TOOLCHAIN_ARM/
CMSIS_5/CMSIS/RTOS2/RTX/Source/GCC/irq_cm0.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_M0P/TOOLCHAIN_GCC/
CMSIS_5/CMSIS/RTOS2/RTX/Source/IAR/irq_cm0.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_M0P/TOOLCHAIN_IAR/
CMSIS_5/CMSIS/RTOS2/RTX/Source/ARM/irq_cm3.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_M3/TOOLCHAIN_ARM/
CMSIS_5/CMSIS/RTOS2/RTX/Source/GCC/irq_cm3.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_M3/TOOLCHAIN_GCC/
CMSIS_5/CMSIS/RTOS2/RTX/Source/IAR/irq_cm3.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_M3/TOOLCHAIN_IAR/
CMSIS_5/CMSIS/RTOS2/RTX/Source/ARM/irq_cm4f.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_RTOS_M4_M7/TOOLCHAIN_ARM/
CMSIS_5/CMSIS/RTOS2/RTX/Source/GCC/irq_cm4f.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_RTOS_M4_M7/TOOLCHAIN_GCC/
CMSIS_5/CMSIS/RTOS2/RTX/Source/IAR/irq_cm4f.s -> mbed-os/rtos/rtx2/TARGET_CORTEX_M/TARGET_RTOS_M4_M7/TOOLCHAIN_IAR/
2017-05-30 18:53:37 +01:00