From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yinghai Lu Subject: Re: [PATCH] x86: make sure wakeup code is below 1M -v2 Date: Wed, 11 Nov 2009 11:05:38 -0800 Message-ID: <4AFB0B02.4050306@kernel.org> References: <4AF7D820.5040503@kernel.org> <200911091315.13151.rjw@sisk.pl> <4AFA210B.3020207@kernel.org> <1257930767.31183.113.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from hera.kernel.org ([140.211.167.34]:41062 "EHLO hera.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758469AbZKKTHD (ORCPT ); Wed, 11 Nov 2009 14:07:03 -0500 In-Reply-To: <1257930767.31183.113.camel@localhost.localdomain> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: ykzhao Cc: "Rafael J. Wysocki" , Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Len Brown , "linux-kernel@vger.kernel.org" , ACPI Devel Maling List , pm list ykzhao wrote: > On Wed, 2009-11-11 at 10:27 +0800, Yinghai Lu wrote: >> try to find_e820_area/reserve_early, and call acpi_reserve_memory early >> >> to get area is below 1M >> >> -v2: change function name to acpi_reserve_wakeup_memory according to Rafael > It seems that the function of find_e820_area is called in several > places. > >Initmem_init: bootmap = find_e820_area(0, end_pfn< bootmap_size, PAGE_SIZE); > > If we also call it in the acpi_reserve_wakeup_memory, do we get the same > base address as that obtained in initmem_init? no. find_e820_area will check the reserve res array that could be updated by reserve_early. YH