summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/panic_output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/panic_output.c b/common/panic_output.c
index 4658dc6bb2..144b7a0e19 100644
--- a/common/panic_output.c
+++ b/common/panic_output.c
@@ -174,7 +174,7 @@ static int command_crash(int argc, char **argv)
#endif
} else if (!strcasecmp(argv[1], "unaligned")) {
cflush();
- ccprintf("%08x", *(int *)0xcdef);
+ ccprintf("%08x", *(volatile int *)0xcdef);
} else if (!strcasecmp(argv[1], "watchdog")) {
while (1)
;