| 132 | } |
| 133 | |
| 134 | static inline bool |
| 135 | kcsan_access_is_atomic(csan_cell_t *new, csan_cell_t *old) |
| 136 | { |
| 137 | if (new->write && !new->atomic) |
| 138 | return false; |
| 139 | if (old->write && !old->atomic) |
| 140 | return false; |
| 141 | return true; |
| 142 | } |
| 143 | |
| 144 | static inline void |
| 145 | kcsan_access(uintptr_t addr, size_t size, bool write, bool atomic, uintptr_t pc) |