From c3d6d95c0e1ab9a18a401be29947b2dd111b35b4 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 6 Apr 2024 20:53:15 -0400 Subject: kernel: mmio: Make 'addr' volatile Signed-off-by: Ian Moffett --- sys/include/sys/mmio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') 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; \ \ -- cgit v1.2.3