From: Gleb Natapov Subject: [PATCH unit-tests 06/16] Specify correct operand length for ltr and str. Date: Wed, 22 Dec 2010 17:06:19 +0200 Message-ID: <1293030389-1143-7-git-send-email-gleb@redhat.com> References: <1293030389-1143-1-git-send-email-gleb@redhat.com> Cc: kvm@vger.kernel.org To: avi@redhat.com, mtosatti@redhat.com Return-path: Received: from mx1.redhat.com ([209.132.183.28]:44833 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752974Ab0LVPGc (ORCPT ); Wed, 22 Dec 2010 10:06:32 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oBMF6Wwv013047 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 22 Dec 2010 10:06:32 -0500 In-Reply-To: <1293030389-1143-1-git-send-email-gleb@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Signed-off-by: Gleb Natapov --- lib/x86/processor.h | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/x86/processor.h b/lib/x86/processor.h index c348808..c3ab109 100644 --- a/lib/x86/processor.h +++ b/lib/x86/processor.h @@ -193,13 +193,13 @@ static inline u16 sldt(void) static inline void ltr(unsigned val) { - asm volatile ("ltr %0" : : "rm"(val)); + asm volatile ("ltr %w0" : : "rm"(val)); } static inline u16 str(void) { u16 val; - asm volatile ("str %0" : "=rm"(val)); + asm volatile ("str %w0" : "=rm"(val)); return val; } -- 1.7.2.3