summaryrefslogtreecommitdiff
path: root/src/prng/rand_r.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-09-10 22:43:22 -0400
committerRich Felker <dalias@aerifal.cx>2012-09-10 22:43:22 -0400
commitb94067eeae894b5a26170cebc378261f83ad00cb (patch)
tree33d1536ced6a1eef7f3d49658128db782ed489fc /src/prng/rand_r.c
parent2bf469310de6793228c103691859ed4d3158b117 (diff)
downloadmusl-b94067eeae894b5a26170cebc378261f83ad00cb.tar.gz
eliminate assumption that mips syscall restart preserves r25
all past and current kernel versions have done so, but there seems to be no reason it's necessary and the sentiment from everyone I've asked has been that we should not rely on it. instead, use r7 (an argument register) which will necessarily be preserved upon syscall restart. however this only works for 0-3 argument syscalls, and we have to resort to the function call for 4-argument syscalls.
Diffstat (limited to 'src/prng/rand_r.c')
0 files changed, 0 insertions, 0 deletions