summaryrefslogtreecommitdiff
path: root/src/ram
diff options
context:
space:
mode:
Diffstat (limited to 'src/ram')
-rw-r--r--src/ram/ramtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ram/ramtest.c b/src/ram/ramtest.c
index 0e5e6982a3..55c22e7084 100644
--- a/src/ram/ramtest.c
+++ b/src/ram/ramtest.c
@@ -1,13 +1,13 @@
static void write_phys(unsigned long addr, unsigned long value)
{
- unsigned long *ptr;
+ volatile unsigned long *ptr;
ptr = (void *)addr;
*ptr = value;
}
static unsigned long read_phys(unsigned long addr)
{
- unsigned long *ptr;
+ volatile unsigned long *ptr;
ptr = (void *)addr;
return *ptr;
}