* @brief Performs a ldrex operation. * @param addr Address to perform the operation on. * @return The resulting value. */
| 60 | * @return The resulting value. |
| 61 | */ |
| 62 | static inline s32 __ldrex(s32* addr) |
| 63 | { |
| 64 | s32 val; |
| 65 | __asm__ __volatile__("ldrex %[val], %[addr]" : [val] "=r" (val) : [addr] "Q" (*addr)); |
| 66 | return val; |
| 67 | } |
| 68 | |
| 69 | /** |
| 70 | * @brief Performs a strex operation. |
no outgoing calls
no test coverage detected