From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Rostedt Subject: [PATCH 1/1] use limited register constraint for setnz Date: Tue, 25 Nov 2008 09:20:42 -0500 Message-ID: <20081125142131.270469036@goodmis.org> References: <20081125142041.038383632@goodmis.org> Return-path: Received: from hrndva-omtalb.mail.rr.com ([71.74.56.122]:51796 "EHLO hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750895AbYKYOVd (ORCPT ); Tue, 25 Nov 2008 09:21:33 -0500 Content-Disposition: inline; filename=0001-use-limited-register-constraint-for-setnz.patch Sender: linux-next-owner@vger.kernel.org List-ID: To: linux-kernel@vger.kernel.org Cc: Ingo Molnar , Andrew Morton , Stephen Rothwell , linux-next@vger.kernel.org, Linus Torvalds , "H. Peter Anvin" , Uros Bizjak From: Steven Rostedt Impact: fix in compiling GCC can decide to use %dil when "r" is used, which is not valid for setnz. This bug was brought out by Stephen Rothwell's merging of the branch tracer into linux-next. [ Thanks to Uros Bizjak for recommending 'q' over 'Q' ] Signed-off-by: Steven Rostedt --- arch/x86/boot/tty.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/boot/tty.c b/arch/x86/boot/tty.c index 0be77b3..7e8e8b2 100644 --- a/arch/x86/boot/tty.c +++ b/arch/x86/boot/tty.c @@ -74,7 +74,7 @@ static int kbd_pending(void) { u8 pending; asm volatile("int $0x16; setnz %0" - : "=rm" (pending) + : "=qm" (pending) : "a" (0x0100)); return pending; } -- 1.5.6.5 --