linuxppc_2_4_devel patch: 8xx FEC extensions
Dan Malek
dan at embeddededge.com
Sat Jan 4 10:01:42 EST 2003
Paul Mackerras wrote:
> If we have a variable which is being updated both by the mainline and
> an interrupt handler,...
In this case, it wasn't being updated by both. It was updated in
an interrupt handler, then a mainline function would test the value later.
The mainline function had the optimization habit of caching the value
in a processor register since it didn't know it was being changed outside
of the scope of the function. The volatile declaration works just fine
in this case.
Thanks.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list