diff options
author | Ingo van Lil <inguin@gmx.de> | 2009-06-04 14:33:34 +0200 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-07-03 15:16:17 -0400 |
commit | 38265c7af552c1874b75c76818a082d2841c717b (patch) | |
tree | c62bf55e46404d74ed352e5a53927f0820c95efd /libc/sysdeps/linux/v850/bits/endian.h | |
parent | eed594d648dbd42235d8e63bfbd868c49712a90f (diff) |
i386: store errno value before using __set_errno()
The __syscall_error() function stores the errno value in the edx register
before invoking the __set_errno() macro. When using the pthread library
this macro calls thread_self() to determine the errno location, which might
clobber the edx register. The errno value must be stored in a "real"
variable so the compiler can take care of saving/restoring it if necessary.
Signed-off-by: Ingo van Lil <inguin@gmx.de>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libc/sysdeps/linux/v850/bits/endian.h')
0 files changed, 0 insertions, 0 deletions