From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755226AbYAVVfW (ORCPT ); Tue, 22 Jan 2008 16:35:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752877AbYAVVfJ (ORCPT ); Tue, 22 Jan 2008 16:35:09 -0500 Received: from rv-out-0910.google.com ([209.85.198.185]:50165 "EHLO rv-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751255AbYAVVfH (ORCPT ); Tue, 22 Jan 2008 16:35:07 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=EFSSB0+OgiA8jx8jwfr+enqJl0kXPo0FsTfMQS2gJflQR88JgpmCirSmGxliwxWw+UGYXFbSTPb+EEJvUJcjfQJLFuTWYsNgSuHTtdkIOwFj6HYVwc5/pn/fV3ms2alP58auwZip3/BZMczLj9vq5gTTU4PNFWdYnS2WW1ANNcg= Subject: Re: [PATCH] x86: make nx_enabled conditional on CONFIG_X86_PAE From: Harvey Harrison To: Ingo Molnar Cc: "H. Peter Anvin" , Ian Campbell , Mika =?ISO-8859-1?Q?Penttil=E4?= , linux-kernel@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "Eric W. Biederman" In-Reply-To: <20080122210442.GH12892@elte.hu> References: <1200950633.15491.21.camel@cthulhu.hellion.org.uk> <479510CE.7010706@zytor.com> <1200951996.15491.28.camel@cthulhu.hellion.org.uk> <479551FD.5040801@zytor.com> <1201023401.5643.52.camel@localhost.localdomain> <479634A9.1090908@zytor.com> <1201031325.15491.66.camel@cthulhu.hellion.org.uk> <47964B7B.9000905@zytor.com> <20080122203611.GA12892@elte.hu> <1201035611.16972.61.camel@brick> <20080122210442.GH12892@elte.hu> Content-Type: text/plain Date: Tue, 22 Jan 2008 13:35:15 -0800 Message-Id: <1201037715.16972.76.camel@brick> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2008-01-22 at 22:04 +0100, Ingo Molnar wrote: > * Harvey Harrison wrote: > > > nx_enabled can only be set to non-zero when CONFIG_X86_PAE is set. > > The only use not currently inside a CONFIG_X86_PAE block is the > > definition, the declaration and a conditional unlikely test in > > fault_32.c (is_prefetch). > > > > When !CONFIG_X86_PAE, is_prefetch always returns 0 immediately as > > nx_enabled is always 0. > > > > When CONFIG_X86_PAE, the test is preserved, but the test against the > > cpu model and stepping is deleted, this may not be correct. > > thanks, applied. Hmmm, the extern nx_enabled in page_32.h is already within an ifndef __ASSEMBLY__ block, so I'm not sure how wakeup_32.S could be using it. Thoughts? Harvey