On 10/19/2014 1:01 PM, Rafael Vega wrote:
> 
> If I'm writing and reading from the PRU and the ARM to a position in shared 
> ram, how do I make sure I'm doing it atomically? 

Use 32-bit (or smaller) naturally aligned values in the PRU data ram and
accesses will be atomic on both the PRU and the ARM side.

You can also use other 32-bit memory regions (DDR, on-board SRAM), but
you have to deal with memory management and provide the PRU with
physical addresses (not the logical address you get from malloc).  Plus
the memory access latency could stall the PRU.

-- 
Charles Steinkuehler
[email protected]

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to