Hi Experts,
May I get few info on the porting of spinlock API's in Linux BSP for ARM Juno Board using inbuilt processor feature ?
Like the implementation specific codes and respective file names ?
Regards,
Techguyz
Hi,
The Linux kernel uses the same spinlock implementation for all AArch64 implementations, as the spinlock mechanisms are provided by the architecture.
Here's the lock function, and here's the unlock function.
Is this what you're looking for?
You might also want to consult the ARMv8-A Architecture Reference Manual (ARM DDI 0487A.g), specifically section J10.6.2 "Load-Exclusive, Store-Exclusive and barriers". Note that you'll need to create a free account in order to download the PDF.