From 979a631ef5d596669ebe2283c3db8d97b8c79557 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 2 Sep 2010 03:09:16 -0300 Subject: [PATCH] Be more careful with "volatile". It still worked, but was not a good example. - bbl/bbl.c (REG): the cast took the volatile away --- bbl/bbl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bbl/bbl.c b/bbl/bbl.c index e54e0d4..eb061f9 100644 --- a/bbl/bbl.c +++ b/bbl/bbl.c @@ -21,7 +21,7 @@ #define GPIO_BASE 0x10010000 -#define REG(n) (*(uint32_t *) (mem+(n)-GPIO_BASE)) +#define REG(n) (*(volatile uint32_t *) (mem+(n)-GPIO_BASE)) /* * The XBurst CPUs use an interesting concept for setting GPIOs: instead of