aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-06 20:53:15 -0400
committerIan Moffett <ian@osmora.org>2024-04-06 20:53:15 -0400
commitc3d6d95c0e1ab9a18a401be29947b2dd111b35b4 (patch)
treefc014e4cd3d91483771e8f81a11126314dc4ece7
parent76ad166d8db3eb2a833c143d31bc4208088babfc (diff)
kernel: mmio: Make 'addr' volatile
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--sys/include/sys/mmio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/include/sys/mmio.h b/sys/include/sys/mmio.h
index 3d012a5..69d8fd2 100644
--- a/sys/include/sys/mmio.h
+++ b/sys/include/sys/mmio.h
@@ -53,7 +53,7 @@
*/
#define _MMIO_WRITE_TYPE(TYPE, SUFFIX) \
static inline void \
- mmio_write##SUFFIX(void *addr, TYPE val) \
+ mmio_write##SUFFIX(volatile void *addr, TYPE val) \
{ \
uintptr_t tmp; \
\
@@ -72,7 +72,7 @@
*/
#define _MMIO_READ_TYPE(TYPE, SUFFIX) \
static inline TYPE \
- mmio_read##SUFFIX(void *addr) \
+ mmio_read##SUFFIX(volatile void *addr) \
{ \
uintptr_t tmp; \
\