1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/core
Marian Buschsieweke 7749e621b8
core: Fix undefined behaviour in C11 atomics
Casting pointers to volatile memory to pointers to regular memory is permitted,
but using those pointers to access the memory results in undefined behavior.
This commit changes the casts to no longer drop the volatile qualifier.

References: https://en.cppreference.com/w/c/language/volatile
2019-05-15 15:47:43 +02:00
..
include core: rename thread_state_t to thread_status_t 2019-05-11 12:25:07 +02:00
assert.c core: Fix assert printf format string 2017-02-16 17:11:22 +01:00
atomic_c11.c core: Fix undefined behaviour in C11 atomics 2019-05-15 15:47:43 +02:00
atomic_sync.c core/atomic_sync: guard by GCC >= 4.7 2019-05-13 13:18:21 +02:00
bitarithm.c core/bitarithm: add explicit 32-bit function 2018-10-08 13:57:21 +02:00
clist.c add copyrights from IOTPUSH project 2019-05-02 12:09:37 +02:00
cond.c core: condition variable implementation 2018-11-30 11:22:07 -08:00
doc.txt doxygen: use initial capitals for group names 2019-01-09 08:42:59 +01:00
kernel_init.c core: Rename typedef schedstat -> schedstat_t 2018-10-26 09:10:21 +02:00
lifo.c core: cpu: fix check for DEVELHELP 2015-09-12 12:43:15 +02:00
Makefile core: adapt to Makefile.submodule 2017-03-28 20:50:48 +02:00
mbox.c core: remove redundant casts 2019-01-09 23:00:50 +01:00
msg.c core/msg: add assert for problem identified in #10881 2019-01-28 17:14:16 +01:00
mutex.c core: mutex: fix DEBUG pointer output 2018-11-09 08:41:50 +01:00
panic.c core: remove COREIF_NG 2017-11-16 14:39:54 +01:00
priority_queue.c core: assertion not to add twice to priority_queue 2015-11-27 14:57:17 +01:00
ringbuffer.c core: bugfix: ringbuffer_remove 2017-03-01 22:01:26 +01:00
rmutex.c core: fix doxygen grouping 2018-06-11 19:12:02 +02:00
sched.c core: rename thread_state_t to thread_status_t 2019-05-11 12:25:07 +02:00
thread_flags.c core: Made thread state an enum 2019-02-13 13:31:52 +01:00
thread.c core/thread: unify thread_t variable naming 2019-05-11 11:39:32 +02:00