4646#ifndef __STATIC_INLINE
4747 #define __STATIC_INLINE static inline
4848#endif
49- #ifndef __STATIC_FORCEINLINE
49+ #ifndef __STATIC_FORCEINLINE
5050 #define __STATIC_FORCEINLINE __attribute__((always_inline)) static inline
51- #endif
51+ #endif
5252#ifndef __NO_RETURN
5353 #define __NO_RETURN __attribute__((__noreturn__))
5454#endif
126126 \details This default implementations initialized all data and additional bss
127127 sections relying on .copy.table and .zero.table specified properly
128128 in the used linker script.
129-
129+
130130 */
131131__STATIC_FORCEINLINE __NO_RETURN void __cmsis_start (void )
132132{
133133 extern void _start (void ) __NO_RETURN ;
134-
134+
135135 typedef struct {
136136 uint32_t const * src ;
137137 uint32_t * dest ;
138138 uint32_t wlen ;
139139 } __copy_table_t ;
140-
140+
141141 typedef struct {
142142 uint32_t * dest ;
143143 uint32_t wlen ;
144144 } __zero_table_t ;
145-
145+
146146 extern const __copy_table_t __copy_table_start__ ;
147147 extern const __copy_table_t __copy_table_end__ ;
148148 extern const __zero_table_t __zero_table_start__ ;
@@ -153,16 +153,16 @@ __STATIC_FORCEINLINE __NO_RETURN void __cmsis_start(void)
153153 pTable -> dest [i ] = pTable -> src [i ];
154154 }
155155 }
156-
156+
157157 for (__zero_table_t const * pTable = & __zero_table_start__ ; pTable < & __zero_table_end__ ; ++ pTable ) {
158158 for (uint32_t i = 0u ; i < pTable -> wlen ; ++ i ) {
159159 pTable -> dest [i ] = 0u ;
160160 }
161161 }
162-
162+
163163 _start ();
164164}
165-
165+
166166#define __PROGRAM_START __cmsis_start
167167#endif
168168
@@ -652,7 +652,7 @@ __STATIC_FORCEINLINE void __TZ_set_FAULTMASK_NS(uint32_t faultMask)
652652 Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
653653 Stack Pointer Limit register hence zero is returned always in non-secure
654654 mode.
655-
655+
656656 \details Returns the current value of the Process Stack Pointer Limit (PSPLIM).
657657 \return PSPLIM Register value
658658 */
@@ -697,7 +697,7 @@ __STATIC_FORCEINLINE uint32_t __TZ_get_PSPLIM_NS(void)
697697 Devices without ARMv8-M Main Extensions (i.e. Cortex-M23) lack the non-secure
698698 Stack Pointer Limit register hence the write is silently ignored in non-secure
699699 mode.
700-
700+
701701 \details Assigns the given value to the Process Stack Pointer Limit (PSPLIM).
702702 \param [in] ProcStackPtrLimit Process Stack Pointer Limit value to set
703703 */
@@ -834,7 +834,7 @@ __STATIC_FORCEINLINE uint32_t __get_FPSCR(void)
834834{
835835#if ((defined (__FPU_PRESENT ) && (__FPU_PRESENT == 1U )) && \
836836 (defined (__FPU_USED ) && (__FPU_USED == 1U )) )
837- #if __has_builtin (__builtin_arm_get_fpscr )
837+ #if __has_builtin (__builtin_arm_get_fpscr )
838838// Re-enable using built-in when GCC has been fixed
839839// || (__GNUC__ > 7) || (__GNUC__ == 7 && __GNUC_MINOR__ >= 2)
840840 /* see https://gcc.gnu.org/ml/gcc-patches/2017-04/msg00443.html */
0 commit comments