From: "Jan Beulich" Subject: Re: [PATCH 1/2, v2] x86: use MOV instead of PUSH/POP when saving/restoring register state Date: Tue, 30 Oct 2012 15:33:19 +0000 Message-ID: <5090014F02000078000A580D@nat28.tlf.novell.com> References: <506B2268020000780009F273@nat28.tlf.novell.com> <508FF03702000078000A576D@nat28.tlf.novell.com> <508FF1E202000078000A5786@nat28.tlf.novell.com> <508FF012.30901@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <508FF012.30901@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Mats Petersson Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 30.10.12 at 16:19, Mats Petersson wrote: > On 30/10/12 14:27, Jan Beulich wrote: >> --- a/xen/include/asm-x86/x86_64/asm_defns.h >> +++ b/xen/include/asm-x86/x86_64/asm_defns.h >> @@ -5,11 +5,11 @@ >> >> #ifdef CONFIG_FRAME_POINTER >> /* Indicate special exception stack frame by inverting the frame pointer. > */ >> -#define SETUP_EXCEPTION_FRAME_POINTER \ >> - movq %rsp,%rbp; \ >> +#define SETUP_EXCEPTION_FRAME_POINTER(offs) \ >> + leaq offs(%rsp),%rbp; \ >> notq %rbp >> #else >> -#define SETUP_EXCEPTION_FRAME_POINTER >> +#define SETUP_EXCEPTION_FRAME_POINTER(off) > Is it too pedantic to say that "off" here should be "offs"? > Just for consistency... It doesn't really matter, but I adjusted this in the copy that may eventually get committed - for consistency, as you say. Jan