about summary refs log tree commit diff
path: root/linuxthreads/sysdeps/i386/pt-machine.h
diff options
context:
space:
mode:
Diffstat (limited to 'linuxthreads/sysdeps/i386/pt-machine.h')
-rw-r--r--linuxthreads/sysdeps/i386/pt-machine.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/linuxthreads/sysdeps/i386/pt-machine.h b/linuxthreads/sysdeps/i386/pt-machine.h
index 79c69b549a..465ab9f919 100644
--- a/linuxthreads/sysdeps/i386/pt-machine.h
+++ b/linuxthreads/sysdeps/i386/pt-machine.h
@@ -32,7 +32,8 @@ extern int __compare_and_swap (long int *p, long int oldval, long int newval);
 
 /* 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  __builtin_frame_address (0)
+#define CURRENT_STACK_FRAME  __stack_pointer_register__
+register char *__stack_pointer_register__ __asm__ ("%esp");
 
 
 /* Spinlock implementation; required.  */