]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 16 Mar 2003 10:16:43 +0000 (10:16 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 16 Mar 2003 10:16:43 +0000 (10:16 +0000)
2003-03-16  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
not at function level.
* sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.

ChangeLog
nptl/ChangeLog
nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
sysdeps/unix/clock_gettime.c
sysdeps/unix/clock_settime.c

index db3f21df6e2f3042693f71bb90b7295631d414ef..b0267dfeb4cf2cff612dab2bdaa87b12891a3901 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-03-16  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/unix/clock_settime.c (HANDLE_REALTIME): Define tv here,
+       not at function level.
+       * sysdeps/unix/clock_gettime.c (HANDLE_REALTIME): Likewise.
+
 2003-03-15  Roland McGrath  <roland@redhat.com>
 
        * nis/nss_nis/nis-hosts.c (internal_gethostbyname2_r): int -> size_t
index 9219b2753df415812c63b32d669f29f7fd6769c2..1bafd40f2b301bf71ad1d019d723f1728d55ba94 100644 (file)
@@ -1,5 +1,8 @@
 2003-03-16  Ulrich Drepper  <drepper@redhat.com>
 
+       * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Work around red
+       zone versus inline asm stupidity.  Use correct instructions.
+
        * tst-rwlock6.c: Add some more status output.
 
 2003-03-15  Roland McGrath  <roland@redhat.com>
index cd233bf47ada90501a751983dfde373afe676b85..ef3867bfb912d242028e38d1c3d13eee8b9f5d1b 100644 (file)
@@ -67,7 +67,9 @@ extern int __lll_mutex_unlock_wait (int *__futex) attribute_hidden;
                              "jne 1f\n\t"                                    \
                              ".subsection 1\n"                               \
                              "1:\tleaq %2, %%rsi\n\t"                        \
-                             "call __lll_mutex_lock_wait\n\t"                \
+                             "subq $128, %%rsp\n\t"                          \
+                             "callq __lll_mutex_lock_wait\n\t"               \
+                             "addq $128, %%rsp\n\t"                          \
                              "jmp 2f\n\t"                                    \
                              ".previous\n"                                   \
                              "2:"                                            \
@@ -84,7 +86,9 @@ extern int __lll_mutex_unlock_wait (int *__futex) attribute_hidden;
                       ".subsection 1\n"                                      \
                       "1:\tleaq %4, %%rdi\n\t"                               \
                       "movq %7, %%rdx\n\t"                                   \
-                      "call __lll_mutex_timedlock_wait\n\t"                  \
+                      "subq $128, %%rsp\n\t"                                 \
+                      "callq __lll_mutex_timedlock_wait\n\t"                 \
+                      "addq $128, %%rsp\n\t"                                 \
                       "jmp 2f\n\t"                                           \
                       ".previous\n"                                          \
                       "2:"                                                   \
@@ -101,7 +105,9 @@ extern int __lll_mutex_unlock_wait (int *__futex) attribute_hidden;
                              "jne 1f\n\t"                                    \
                              ".subsection 1\n"                               \
                              "1:\tleaq %0, %%rdi\n\t"                        \
-                             "call __lll_mutex_unlock_wake\n\t"              \
+                             "subq $128, %%rsp\n\t"                          \
+                             "callq __lll_mutex_unlock_wake\n\t"             \
+                             "addq $128, %%rsp\n\t"                          \
                              "jmp 2f\n\t"                                    \
                              ".previous\n"                                   \
                              "2:"                                            \
@@ -152,7 +158,9 @@ extern int lll_unlock_wake_cb (int *__futex) attribute_hidden;
                              "jne 1f\n\t"                                    \
                              ".subsection 1\n"                               \
                              "1:\tleaq %2, %%rsi\n\t"                        \
-                             "call __lll_lock_wait\n\t"                      \
+                             "subq $128, %%rsp\n\t"                          \
+                             "callq __lll_lock_wait\n\t"                     \
+                             "addq $128, %%rsp\n\t"                          \
                              "jmp 2f\n\t"                                    \
                              ".previous\n"                                   \
                              "2:"                                            \
@@ -167,7 +175,9 @@ extern int lll_unlock_wake_cb (int *__futex) attribute_hidden;
                              "jng 1f\n\t"                                    \
                              ".subsection 1\n"                               \
                              "1:\tleaq %0, %%rdi\n\t"                        \
-                             "call __lll_unlock_wake\n\t"                    \
+                             "subq $128, %%rsp\n\t"                          \
+                             "callq __lll_unlock_wake\n\t"                   \
+                             "addq $128, %%rsp\n\t"                          \
                              "jmp 2f\n\t"                                    \
                              ".previous\n"                                   \
                              "2:"                                            \
@@ -201,7 +211,9 @@ extern int lll_unlock_wake_cb (int *__futex) attribute_hidden;
                              "jne 1f\n\t"                                    \
                              ".subsection 1\n"                               \
                              "1:\tleaq %2, %%rsi\n\t"                        \
-                             "call __lll_lock_wait\n\t"                      \
+                             "subq $128, %%rsp\n\t"                          \
+                             "callq __lll_lock_wait\n\t"                     \
+                             "addq $128, %%rsp\n\t"                          \
                              "jmp 2f\n\t"                                    \
                              ".previous\n"                                   \
                              "2:"                                            \
@@ -219,7 +231,9 @@ extern int lll_unlock_wake_cb (int *__futex) attribute_hidden;
                              "jng 1f\n\t"                                    \
                              ".subsection 1\n"                               \
                              "1:\tleaq %0, %%rdi\n\t"                        \
-                             "call __lll_unlock_wake\n\t"                    \
+                             "subq $128, %%rsp\n\t"                          \
+                             "callq __lll_unlock_wake\n\t"                   \
+                             "addq $128, %%rsp\n\t"                          \
                              "jmp 2f\n\t"                                    \
                              ".previous\n"                                   \
                              "2:"                                            \
index 4c26a370e6281703aad60cb40ca70cf60716bcf6..b8b2b74e2fa5bbbe3d594d362f88c723b5a2422f 100644 (file)
@@ -41,13 +41,13 @@ extern int __pthread_clock_gettime (hp_timing_t freq, struct timespec *tp)
 int
 clock_gettime (clockid_t clock_id, struct timespec *tp)
 {
-  struct timeval tv;
   int retval = -1;
 
   switch (clock_id)
     {
 #define HANDLE_REALTIME \
       do {                                                                   \
+        struct timeval tv;                                                   \
        retval = gettimeofday (&tv, NULL);                                    \
        if (retval == 0)                                                      \
          /* Convert into `timespec'.  */                                     \
index 0ef0bccc67d91d8767f795c280ceab7da2db6133..069336a69efab3566925713a06c43ecd3c503f86 100644 (file)
@@ -40,7 +40,6 @@ extern void __pthread_clock_settime (hp_timing_t offset)
 int
 clock_settime (clockid_t clock_id, const struct timespec *tp)
 {
-  struct timeval tv;
   int retval;
 
   /* Make sure the time cvalue is OK.  */
@@ -54,6 +53,7 @@ clock_settime (clockid_t clock_id, const struct timespec *tp)
     {
 #define HANDLE_REALTIME \
       do {                                                                   \
+       struct timeval tv;                                                    \
        TIMESPEC_TO_TIMEVAL (&tv, tp);                                        \
                                                                              \
        retval = settimeofday (&tv, NULL);                                    \