From be8498fca009aa0a40ae3c7eeccfcba790284d60 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 15 May 2012 10:00:56 -0700 Subject: Use RSP_LP to operate on stack in stackinfo.h --- sysdeps/x86_64/stackinfo.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps') 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 */ -- cgit 1.4.1