]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Move stack_pointer definition to the beginning.
authorUlrich Drepper <drepper@redhat.com>
Thu, 2 Dec 1999 08:24:11 +0000 (08:24 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 2 Dec 1999 08:24:11 +0000 (08:24 +0000)
linuxthreads/sysdeps/i386/i686/pt-machine.h
linuxthreads/sysdeps/i386/pt-machine.h

index 91dfb468817f80f89a6d936d93a0c92d8e013cd2..8d9ea709bc36ad2bda4f23748f6bc40797669848 100644 (file)
 #endif
 
 
+/* Get some notion of the current stack.  Need not be exactly the top
+   of the stack, just something somewhere in the current frame.  */
+#define CURRENT_STACK_FRAME  stack_pointer
+register char * stack_pointer __asm__ ("%esp");
+
+
 /* Spinlock implementation; required.  */
 PT_EI int
 testandset (int *spinlock)
@@ -40,12 +46,6 @@ testandset (int *spinlock)
 }
 
 
-/* Get some notion of the current stack.  Need not be exactly the top
-   of the stack, just something somewhere in the current frame.  */
-#define CURRENT_STACK_FRAME  stack_pointer
-register char * stack_pointer __asm__ ("%esp");
-
-
 /* Compare-and-swap for semaphores.  It's always available on i686.  */
 #define HAS_COMPARE_AND_SWAP
 
index 97d75d4c04b6181779d18ed72e352bf375d60a9f..f542bb2d286a9ba45c267f5b914834cc8c10310d 100644 (file)
 # define PT_EI extern inline
 #endif
 
+/* Get some notion of the current stack.  Need not be exactly the top
+   of the stack, just something somewhere in the current frame.  */
+#define CURRENT_STACK_FRAME  stack_pointer
+register char * stack_pointer __asm__ ("%esp");
+
+
 /* Spinlock implementation; required.  */
 PT_EI int
 testandset (int *spinlock)
@@ -39,12 +45,6 @@ testandset (int *spinlock)
 }
 
 
-/* Get some notion of the current stack.  Need not be exactly the top
-   of the stack, just something somewhere in the current frame.  */
-#define CURRENT_STACK_FRAME  stack_pointer
-register char * stack_pointer __asm__ ("%esp");
-
-
 /* Compare-and-swap for semaphores.
    Available on the 486 and above, but not on the 386.
    We test dynamically whether it's available or not. */