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 4cb8be2 commit c754d01Copy full SHA for c754d01
1 file changed
src/mips/tests/uC-sdk-glue/init.c
@@ -52,7 +52,7 @@ static inline void fastLeaveCriticalSection() {
52
setCop0Status(sr);
53
}
54
55
-__attribute__((weak)) int8_t __sync_fetch_and_add_1(int8_t* ptr, int8_t arg) {
+__attribute__((weak)) int8_t __sync_fetch_and_add_1(volatile int8_t* ptr, int8_t arg) {
56
int needsToLeaveCS = fastEnterCriticalSection();
57
int8_t r = *ptr;
58
*ptr += arg;
0 commit comments