OSDN Git Service

mips: do not save variables in "hi" or "lo" across system calls
authorDaniel Jacobowitz <dan@codesourcery.com>
Fri, 25 Sep 2009 22:48:39 +0000 (18:48 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 26 Sep 2009 11:48:10 +0000 (07:48 -0400)
commit18cc8e0e459edf5391016ef76a4ff3108981d86a
treef4a9c56c3d72709eb98a9f122368760657516816
parent640f4d29e5753f2d20941f4cf018154ca506c349
mips: do not save variables in "hi" or "lo" across system calls

The kernel does not save these registers across system calls.  GCC 4.4
has gotten more aggressive about using them for temporary variables, so
this shows up as intermittent crashes if you use a recent compiler.

Signed-off-by: Daniel Jacobowitz <dan@codesourcery.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
libc/sysdeps/linux/mips/bits/syscalls.h