immap_8260.h: volatile missing in immr definition
Dan Malek
dan at embeddededge.com
Sat Sep 7 00:30:49 EST 2002
Hans dot Feldt at uab.ericsson.se wrote:
> Change from: extern immap_t *immr:
> to: extern volatile immap_t *immr;
Rather than do this, I would prefer you use a function local variable
and load the global immr into it. You should also get into the habit
of using barrier operations between such I/O accesses that must be
properly ordered. The global volatile declaration isn't sufficient
to enforce ordered operations. You just got lucky this time.
Thanks.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list