Thread (2 messages) 2 messages, 2 authors, 2003-01-03

Re: linuxppc_2_4_devel patch: 8xx FEC extensions

From: Dan Malek <hidden>
Date: 2003-01-03 23:01:42

Possibly related (same subject, not in this thread)

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/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help