summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
62f7196)
Protect x in ACCESS_ONCE macro.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
* use is to mediate communication between process-level code and irq/NMI
* handlers, all running on the same CPU.
*/
* use is to mediate communication between process-level code and irq/NMI
* handlers, all running on the same CPU.
*/
-#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&x)
+#define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x))
#ifndef max
#define max(a,b) ((a)>(b)?(a):(b))
#ifndef max
#define max(a,b) ((a)>(b)?(a):(b))