Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756281Ab2EIHM6 (ORCPT ); Wed, 9 May 2012 03:12:58 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:64156 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755393Ab2EIHM5 (ORCPT ); Wed, 9 May 2012 03:12:57 -0400 Message-ID: <4FAA18F1.6080508@redhat.com> Date: Wed, 09 May 2012 09:12:49 +0200 From: Paolo Bonzini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120425 Thunderbird/12.0 MIME-Version: 1.0 To: Jarkko Sakkinen CC: linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Michal Marek , Sam Ravnborg , Joseph Cihula , Shane Wang , hpa@linux.intel.com Subject: Re: [PATCH 04/23] x86, realmode: Move reboot_32.S to unified realmode code References: <1336501366-28617-1-git-send-email-jarkko.sakkinen@intel.com> <1336501366-28617-5-git-send-email-jarkko.sakkinen@intel.com> In-Reply-To: <1336501366-28617-5-git-send-email-jarkko.sakkinen@intel.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 787 Lines: 29 Il 08/05/2012 20:22, Jarkko Sakkinen ha scritto: > + xorl %ecx, %ecx > + movl %cr0, %edx > + andl $0x00000011, %edx > + orl $0x60000000, %edx > + movl %edx, %cr0 > + movl %ecx, %cr3 > + movl %cr0, %edx > + andl $0x60000000, %edx /* If no cache bits -> no wbinvd */ Shouldn't this be a testl? > + jz 2f > + wbinvd > +2: > + andb $0x10, %dl ... because otherwise this is really a mov $0, %edx and it sounds wrong. It doesn't really matter, nobody really uses bit 4 of CR0 anymore, still would be nice to fix it. > + movl %edx, %cr0 Paolo -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/