for implementing a queue between CPU and PRU a lock-free algorithm looks attractive
this needs atomic pointer exchange, and compare-and-swap operations
Its clear how to do this on the CPU side - gcc supports these as builtins also for ARM
how would I implement atomic pointer exchange, and compare-and-swap in PRU assembly?
- Michael