]> git.ipfire.org Git - thirdparty/glibc.git/commit
linux: Add sparck brk implementation
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 4 Aug 2021 18:34:12 +0000 (21:34 +0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 4 Aug 2021 20:38:30 +0000 (17:38 -0300)
commit5b86241a032c50462988bdd1439e078384690d34
tree6279164e0817666e776fe193c0a1f789b9a955a2
parentac30324c67d94696fdb0799e9d4fc51dc70d490b
linux: Add sparck brk implementation

It turned that the generic implementation of brk() does not work
for sparc, since on failure kernel will just return the previous
input value without setting the conditional register.

This patches adds back a sparc32 and sparc64 implementation removed
by 720480934ab9107.

Checked on sparc64-linux-gnu and sparcv9-linux-gnu.
sysdeps/unix/sysv/linux/sparc/brk.c [new file with mode: 0644]