I use the instruction lwarx & stwcx. implement the Spinlock function on S32R274。
After a lot of test whitch between Z4 core and Z70 core,I found Spinlock fails sometimes。Z4 core and Z7 core enter the protect area at the same time。
Spinlock variable value is share sram data which attribute is uncacheable。