diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2012-03-19 16:21:21 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2012-03-19 16:21:21 -0700 |
commit | 24d8f4b7dc85b8f4c8907527ec92c9d2e5fdce7c (patch) | |
tree | de889115270ccf956afc6d4ca16b114cf903fe94 /nptl/sysdeps | |
parent | 490df6c44152fb9f4ade4963c60dfd82025ff2eb (diff) | |
download | glibc-24d8f4b7dc85b8f4c8907527ec92c9d2e5fdce7c.zip glibc-24d8f4b7dc85b8f4c8907527ec92c9d2e5fdce7c.tar.gz glibc-24d8f4b7dc85b8f4c8907527ec92c9d2e5fdce7c.tar.bz2 |
Use __asm__("rsp") to get CURRENT_STACK_FRAME
Diffstat (limited to 'nptl/sysdeps')
-rw-r--r-- | nptl/sysdeps/x86_64/pthreaddef.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nptl/sysdeps/x86_64/pthreaddef.h b/nptl/sysdeps/x86_64/pthreaddef.h index 7e45be4..50587b8 100644 --- a/nptl/sysdeps/x86_64/pthreaddef.h +++ b/nptl/sysdeps/x86_64/pthreaddef.h @@ -41,7 +41,7 @@ /* Location of current stack frame. The frame pointer is not usable. */ #define CURRENT_STACK_FRAME \ - ({ char *frame; asm ("movq %%rsp, %0" : "=r" (frame)); frame; }) + ({ register char *frame __asm__("rsp"); frame; }) /* XXX Until we have a better place keep the definitions here. */ |