Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750785AbVLHIhQ (ORCPT ); Thu, 8 Dec 2005 03:37:16 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750818AbVLHIhP (ORCPT ); Thu, 8 Dec 2005 03:37:15 -0500 Received: from colin.muc.de ([193.149.48.1]:270 "EHLO mail.muc.de") by vger.kernel.org with ESMTP id S1750785AbVLHIhO (ORCPT ); Thu, 8 Dec 2005 03:37:14 -0500 Date: 8 Dec 2005 09:37:09 +0100 Date: Thu, 8 Dec 2005 09:37:09 +0100 From: Andi Kleen To: Vivek Goyal Cc: linux kernel mailing list , Morton Andrew Morton , len.brown@intel.com Subject: Re: [PATCH] x86_64: acpi map table fix Message-ID: <20051208083709.GA87750@muc.de> References: <20051208041509.GA4841@in.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051208041509.GA4841@in.ibm.com> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 643 Lines: 21 On Thu, Dec 08, 2005 at 09:45:09AM +0530, Vivek Goyal wrote: > > > o Memory till end_pfn_map has been directly mapped. So all the memory > references to the last page (represented by end_pfn_map) should be > valid. > I think the correct test is if (phys_addr+size <= (end_pfn_map << PAGE_SHIFT) + PAGE_SIZE) return __va(phys_addr); I changed it to that. Thanks. -Andi - 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/