diff options
author | Ian Moffett <ian@osmora.org> | 2024-04-06 20:53:15 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-04-06 20:53:15 -0400 |
commit | c3d6d95c0e1ab9a18a401be29947b2dd111b35b4 (patch) | |
tree | fc014e4cd3d91483771e8f81a11126314dc4ece7 /sys/include | |
parent | 76ad166d8db3eb2a833c143d31bc4208088babfc (diff) |
kernel: mmio: Make 'addr' volatile
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include')
-rw-r--r-- | sys/include/sys/mmio.h | 4 |
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; \ \ |