Skip to content

Commit

Permalink
Build: Update IAR support for 5.8.0
Browse files Browse the repository at this point in the history
Added stack sealing support to header and assembly startup files
for cm23, cm33, cm35p. The link script support for this will be
provided in an updated IAR CMSIS-Manager, once that has been
released.

Signed-off-by: TTornblom <[email protected]>
  • Loading branch information
TTornblom authored and JonatanAntoni committed Apr 13, 2021
1 parent 6f8bea7 commit 0a959c6
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions CMSIS/Core/Include/cmsis_iccarm.h
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,24 @@ __packed struct __iar_u32 { uint32_t v; };
#define __VECTOR_TABLE_ATTRIBUTE @".intvec"
#endif

#if defined (__ARM_FEATURE_CMSE) && (__ARM_FEATURE_CMSE == 3U)
#ifndef __STACK_SEAL
#define __STACK_SEAL STACKSEAL$$Base
#endif

#ifndef __TZ_STACK_SEAL_SIZE
#define __TZ_STACK_SEAL_SIZE 8U
#endif

#ifndef __TZ_STACK_SEAL_VALUE
#define __TZ_STACK_SEAL_VALUE 0xFEF5EDA5FEF5EDA5ULL
#endif

__STATIC_FORCEINLINE void __TZ_set_STACKSEAL_S (uint32_t* stackTop) {
*((uint64_t *)stackTop) = __TZ_STACK_SEAL_VALUE;
}
#endif

#ifndef __ICCARM_INTRINSICS_VERSION__
#define __ICCARM_INTRINSICS_VERSION__ 0
#endif
Expand Down

0 comments on commit 0a959c6

Please sign in to comment.