This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5706: Spinlock usage from Linux

Part Number: AM5706

Tool/software: Linux

Hi everybody:

            I learnt that the AM5706 has the spinlock feature implemented in the silicon.

So in principle, any operating system can make use of it. The think is that if you want to

use them, you first need to disable interrupts, then get the spinlock.

Once you got the spinlock, you have to run fast code and then release the spinlock and

leave the interrupts as they were at the beginning.

My question is:

I have Linux in the A15 and TI-RTOS in the DSP. I want to use the spinlock to protect

some access to share memory, but I want to make sure tha Linux is using the hardware

spinlock provided by the AM5706 and not a software spinlock.

How can I do this in both, user and kernel space?

Regards

Billa