# compiler_rt: atomics: Add TAS lock support for SPARC · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/274e2a1ef1513bb2960becf60854e6e4d574ff5c)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 274e2a1ef1513bb2960becf60854e6e4d574ff5c

Requested commit: 274e2a1ef1513bb2960becf60854e6e4d574ff5c

Commit: 274e2a1ef1513bb2960becf60854e6e4d574ff5c

Tree: c5bd0864d1c6af7415abc301cfef4b4720d5a329

Author: Koakuma

Committer: Koakuma

## Message

```
compiler_rt: atomics: Add TAS lock support for SPARC

Some SPARC CPUs (particularly old and/or embedded ones) only has atomic
TAS instruction available (`ldstub`). This adds support for emitting
that instruction in the spinlock.

```

## Parents

- [d66c61a2cf69665223815a1a12a1f93b30b99571](https://git.cafe/gitcafe/zig/commit/d66c61a2cf69665223815a1a12a1f93b30b99571?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/274e2a1ef1513bb2960becf60854e6e4d574ff5c?format=markdown)
