]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(INLINE_SYSCALL): Add memory clobber.
authorUlrich Drepper <drepper@redhat.com>
Fri, 15 Sep 2000 17:48:53 +0000 (17:48 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 15 Sep 2000 17:48:53 +0000 (17:48 +0000)
sysdeps/unix/sysv/linux/arm/sysdep.h
sysdeps/unix/sysv/linux/m68k/sysdep.h

index 1413a4873697188cbeee0403cb5e207d8241bc1f..1fae6c1f43b07a6cc748e3dc3053c9ec1c24fa2c 100644 (file)
        asm volatile ("swi      %1      @ syscall " #name       \
                     : "=r" (_a1)                               \
                     : "i" (SYS_ify(name)) ASM_ARGS_##nr        \
-                    : "a1");                                   \
+                    : "a1" : "memory");                        \
        _sys_result = _a1;                                      \
      }                                                         \
      if (_sys_result >= (unsigned int) -4095)                  \
index d445471440e18993742770383467ae6d39083b91..e10c78862b5c824daa8a2941e6bd38f873aaf4aa 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Written by Andreas Schwab, <schwab@issan.informatik.uni-dortmund.de>,
    December 1995.
@@ -171,7 +171,7 @@ SYSCALL_ERROR_LABEL:                                                              \
        asm volatile ("trap #0"                         \
                     : "=d" (_d0)                       \
                     : "0" (_d0) ASM_ARGS_##nr          \
-                    : "d0");                           \
+                    : "d0" : "memory");                \
        _sys_result = _d0;                              \
      }                                                 \
      if (_sys_result >= (unsigned int) -4095)          \