diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2015-12-14 20:35:51 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2015-12-14 20:35:51 -0800 |
commit | bed04d2261bded5888f96a618ed770a4de6dc69a (patch) | |
tree | d40ad87af5981222731fa6f2b3c896c83aeaafd7 | |
parent | d4f465df65a5723ede4cf933afee5582312fc603 (diff) | |
download | glibc-hjl/pr19363/clobber.zip glibc-hjl/pr19363/clobber.tar.gz glibc-hjl/pr19363/clobber.tar.bz2 |
Use REGISTERS_CLOBBERED_BY_SYSCALLhjl/pr19363/clobber
-rw-r--r-- | sysdeps/unix/sysv/linux/x86_64/x32/times.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sysdeps/unix/sysv/linux/x86_64/x32/times.c b/sysdeps/unix/sysv/linux/x86_64/x32/times.c index 330315f..f1ab128 100644 --- a/sysdeps/unix/sysv/linux/x86_64/x32/times.c +++ b/sysdeps/unix/sysv/linux/x86_64/x32/times.c @@ -17,15 +17,15 @@ <http://www.gnu.org/licenses/>. */ /* Inline Linux times system call. */ -#define INTERNAL_SYSCALL_TIMES(err, buf) \ - ({ \ - unsigned long long int resultvar; \ - LOAD_ARGS_1 (buf) \ - LOAD_REGS_1 \ - asm volatile ( \ - "syscall\n\t" \ - : "=a" (resultvar) \ - : "0" (__NR_times) ASM_ARGS_1 : "memory", "cc", "r11", "cx"); \ +#define INTERNAL_SYSCALL_TIMES(err, buf) \ + ({ \ + unsigned long long int resultvar; \ + LOAD_ARGS_1 (buf) \ + LOAD_REGS_1 \ + asm volatile ( \ + "syscall\n\t" \ + : "=a" (resultvar) \ + : "0" (__NR_times) ASM_ARGS_1 : "memory", REGISTERS_CLOBBERED_BY_SYSCALL); \ (long long int) resultvar; }) #include <sysdeps/unix/sysv/linux/times.c> |