mirror of git://sourceware.org/git/glibc.git
Use RSP_LP to operate on stack in stackinfo.h
This commit is contained in:
parent
70bc83b910
commit
be8498fca0
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2012-05-15 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
|
* sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
|
||||||
|
|
|
@ -34,10 +34,10 @@
|
||||||
for which they need to act as barriers as well, hence the additional
|
for which they need to act as barriers as well, hence the additional
|
||||||
(unnecessary) parameters. */
|
(unnecessary) parameters. */
|
||||||
#define stackinfo_get_sp() \
|
#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) \
|
#define stackinfo_sub_sp(ptr) \
|
||||||
({ ptrdiff_t d__; \
|
({ ptrdiff_t d__; \
|
||||||
asm volatile ("sub %%rsp, %0" : "=r" (d__) : "0" (ptr)); \
|
asm volatile ("sub %%" RSP_LP " , %0" : "=r" (d__) : "0" (ptr)); \
|
||||||
d__; })
|
d__; })
|
||||||
|
|
||||||
#endif /* stackinfo.h */
|
#endif /* stackinfo.h */
|
||||||
|
|
Loading…
Reference in New Issue