mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-12 14:20:13 +00:00
Move stack_pointer definition to the beginning of the file.
This commit is contained in:
parent
444df53a4a
commit
204f8589e7
@ -26,6 +26,12 @@
|
||||
#include <asm/pal.h>
|
||||
|
||||
|
||||
/* 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 \
|
||||
({ \
|
||||
|
Loading…
Reference in New Issue
Block a user