Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CMSIS/Include/cmsis_gcc.h
Original file line number Diff line number Diff line change
Expand Up @@ -335,11 +335,15 @@ __attribute__( ( always_inline ) ) __STATIC_INLINE uint32_t __get_FPSCR(void)
__attribute__( ( always_inline ) ) __STATIC_INLINE void __set_FPSCR(uint32_t fpscr)
{
#if (__FPU_PRESENT == 1U) && (__FPU_USED == 1U)
#ifdef __clang__
__builtin_arm_set_fpscr(fpscr);
#else
/* Empty asm statement works as a scheduling barrier */
__ASM volatile ("");
__ASM volatile ("VMSR fpscr, %0" : : "r" (fpscr) : "vfpcc");
__ASM volatile ("");
#endif
#endif
}

#endif /* (__CORTEX_M == 0x04U) || (__CORTEX_M == 0x07U) */
Expand Down
2 changes: 2 additions & 0 deletions CMSIS/RTOS/RTX/INC/RTX_CM_lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@
#pragma O3
#define __USED __attribute__((used))
#elif defined (__GNUC__)
#if !defined(__clang__)
#pragma GCC optimize ("O3")
#endif
#define __USED __attribute__((used))
#elif defined (__ICCARM__)
#define __USED __root
Expand Down