We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1cc251f commit 7e735c4Copy full SHA for 7e735c4
libraries/rtos/rtx/TARGET_CORTEX_A/rt_HAL_CA.h
@@ -108,7 +108,7 @@ extern const U32 GICInterface_BASE;
108
109
/* HW initialization needs to be done in os_tick_init (void) -RTX_Conf_CM.c-
110
* OS_X_INIT enables the IRQ n in the GIC */
111
-#define OS_X_INIT(n) char *reg; \
+#define OS_X_INIT(n) volatile char *reg; \
112
reg = (char *)(&GICD_ICDIPR0 + n / 4); \
113
reg += n % 4; \
114
*reg = (char)0xff; \
@@ -163,7 +163,7 @@ __inline static void rt_systick_init (void) {
163
164
__inline static void rt_svc_init (void) {
165
/* Register pendSV - through SGI */
166
- char *reg;
+ volatile char *reg;
167
168
reg = (char *)(&GICD_ICDIPR0 + SGI_PENDSV/4);
169
reg += SGI_PENDSV % 4;
0 commit comments