From: Ulrich Drepper Date: Tue, 28 Dec 1999 22:06:44 +0000 (+0000) Subject: Move stack_pointer definition to the beginning of the file. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=204f8589e7a7a27a6a387d1106dcc6ad155bf075;p=thirdparty%2Fglibc.git Move stack_pointer definition to the beginning of the file. --- diff --git a/linuxthreads/sysdeps/alpha/pt-machine.h b/linuxthreads/sysdeps/alpha/pt-machine.h index b88629405b4..e59c6906c88 100644 --- a/linuxthreads/sysdeps/alpha/pt-machine.h +++ b/linuxthreads/sysdeps/alpha/pt-machine.h @@ -26,6 +26,12 @@ #include +/* 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__("$30"); + + /* Spinlock implementation; required. */ PT_EI long int testandset (int *spinlock) @@ -60,12 +66,6 @@ testandset (int *spinlock) #define THREAD_STACK_START_ADDRESS 0x40000000000 -/* 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__("$30"); - - /* Return the thread descriptor for the current thread. */ #define THREAD_SELF \ ({ \