# Update 32-bit PowerPC syscall functions · gitcafe/zig

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

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

Visibility: public

Requested revision: 95b638f613406c6bd609c7addd666dbe1758486a

Requested commit: 95b638f613406c6bd609c7addd666dbe1758486a

Commit: 95b638f613406c6bd609c7addd666dbe1758486a

Tree: b443561403ca23a7041dc81ffbbc353600e74c1c

Author: taylor.fish

Committer: taylor.fish

## Message

```
Update 32-bit PowerPC syscall functions

musl and glibc both specify r0 as an output register because its value
may be overwritten by system calls. As with the updates for 64-bit
PowerPC in the previous commit, this commit brings Zig's syscall
functions for 32-bit PowerPC in line with musl and glibc by adding r0 to
the list of clobbers. (Listing r0 as both an input and a clobber is as
close as we can get to musl, which declares it as a "+r" read-write
output, since Zig doesn't support multiple outputs or the "+"
specifier.)

```

## Parents

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

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