Showing changes from revision #3 to #4:
Added | Removed | Changed
Entry | |
---|---|
R0 | 35 |
Exit | |
---|---|
R1 | Pointer to clear exclusive routine, or 0 if no routine is necessary |
The purpose of this call is to return a function pointer that can be called to clear the exclusive monitor lock in a way that is independent of the CPU.
The routine must be called with a valid, full descending, descending stack pointer in R13 and a return address in LR. The routine will preserve all registers, including theCPSR.
The very simplest implementation will be a CLREX instruction, though other CPU variants and silicon implementations may require more complex implementations. The OS will take these into account.