From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751860AbbFBI0G (ORCPT ); Tue, 2 Jun 2015 04:26:06 -0400 Received: from terminus.zytor.com ([198.137.202.10]:45914 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752965AbbFBIZw (ORCPT ); Tue, 2 Jun 2015 04:25:52 -0400 Date: Tue, 2 Jun 2015 01:24:57 -0700 From: tip-bot for Jan Beulich Message-ID: Cc: peterz@infradead.org, jbeulich@suse.com, bp@alien8.de, JBeulich@suse.com, hpa@zytor.com, torvalds@linux-foundation.org, linux-kernel@vger.kernel.org, brgerst@gmail.com, dvlasenk@redhat.com, luto@amacapital.net, tglx@linutronix.de, mingo@kernel.org Reply-To: bp@alien8.de, jbeulich@suse.com, peterz@infradead.org, JBeulich@suse.com, brgerst@gmail.com, linux-kernel@vger.kernel.org, hpa@zytor.com, torvalds@linux-foundation.org, mingo@kernel.org, tglx@linutronix.de, dvlasenk@redhat.com, luto@amacapital.net In-Reply-To: <556C660F020000780007FB60@mail.emea.novell.com> References: <556C660F020000780007FB60@mail.emea.novell.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/asm] x86/asm/entry/64: Use negative immediates for stack adjustments Git-Commit-ID: 2bf557ea3f49576fabe24cd5daf1a34e9ee22c3c X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 2bf557ea3f49576fabe24cd5daf1a34e9ee22c3c Gitweb: http://git.kernel.org/tip/2bf557ea3f49576fabe24cd5daf1a34e9ee22c3c Author: Jan Beulich AuthorDate: Mon, 1 Jun 2015 13:02:55 +0100 Committer: Ingo Molnar CommitDate: Tue, 2 Jun 2015 10:10:09 +0200 x86/asm/entry/64: Use negative immediates for stack adjustments Doing so allows adjustments by 128 bytes (occurring for REMOVE_PT_GPREGS_FROM_STACK 8 uses) to be expressed with a single byte immediate. Signed-off-by: Jan Beulich Cc: Andy Lutomirski Cc: Borislav Petkov Cc: Brian Gerst Cc: Denys Vlasenko Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Link: http://lkml.kernel.org/r/556C660F020000780007FB60@mail.emea.novell.com Signed-off-by: Ingo Molnar --- arch/x86/include/asm/calling.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/calling.h b/arch/x86/include/asm/calling.h index 0d76acc..f4e6308 100644 --- a/arch/x86/include/asm/calling.h +++ b/arch/x86/include/asm/calling.h @@ -89,7 +89,7 @@ For 32-bit we have the following conventions - kernel is built with #define SIZEOF_PTREGS 21*8 .macro ALLOC_PT_GPREGS_ON_STACK addskip=0 - subq $15*8+\addskip, %rsp + addq $-(15*8+\addskip), %rsp .endm .macro SAVE_C_REGS_HELPER offset=0 rax=1 rcx=1 r8910=1 r11=1 @@ -201,7 +201,7 @@ For 32-bit we have the following conventions - kernel is built with .endm .macro REMOVE_PT_GPREGS_FROM_STACK addskip=0 - addq $15*8+\addskip, %rsp + subq $-(15*8+\addskip), %rsp .endm .macro icebp