aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2012-05-15 10:00:56 -0700
committerH.J. Lu <hjl.tools@gmail.com>2012-05-15 10:00:56 -0700
commitbe8498fca009aa0a40ae3c7eeccfcba790284d60 (patch)
tree0e69cef17486c5d2aa4f3288b11b183cf89d8767
parent70bc83b910850502582330b9b3a0fe961a36d86b (diff)
downloadglibc-be8498fca009aa0a40ae3c7eeccfcba790284d60.tar
glibc-be8498fca009aa0a40ae3c7eeccfcba790284d60.tar.gz
glibc-be8498fca009aa0a40ae3c7eeccfcba790284d60.tar.bz2
glibc-be8498fca009aa0a40ae3c7eeccfcba790284d60.zip
Use RSP_LP to operate on stack in stackinfo.h
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/x86_64/stackinfo.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 14d081f971..a79a92bec8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
+ * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
+ (stackinfo_sub_sp): Likewise.
+
+2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
+
* sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
RAX_LP.
diff --git a/sysdeps/x86_64/stackinfo.h b/sysdeps/x86_64/stackinfo.h
index ee859e0309..aad8dd435f 100644
--- a/sysdeps/x86_64/stackinfo.h
+++ b/sysdeps/x86_64/stackinfo.h
@@ -34,10 +34,10 @@
for which they need to act as barriers as well, hence the additional
(unnecessary) parameters. */
#define stackinfo_get_sp() \
- ({ void *p__; asm volatile ("mov %%rsp, %0" : "=r" (p__)); p__; })
+ ({ void *p__; asm volatile ("mov %%" RSP_LP ", %0" : "=r" (p__)); p__; })
#define stackinfo_sub_sp(ptr) \
({ ptrdiff_t d__; \
- asm volatile ("sub %%rsp, %0" : "=r" (d__) : "0" (ptr)); \
+ asm volatile ("sub %%" RSP_LP " , %0" : "=r" (d__) : "0" (ptr)); \
d__; })
#endif /* stackinfo.h */