Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758150AbYFQQEv (ORCPT ); Tue, 17 Jun 2008 12:04:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753801AbYFQQEl (ORCPT ); Tue, 17 Jun 2008 12:04:41 -0400 Received: from terminus.zytor.com ([198.137.202.10]:55030 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752470AbYFQQEk (ORCPT ); Tue, 17 Jun 2008 12:04:40 -0400 Message-ID: <4857E07F.3070209@zytor.com> Date: Tue, 17 Jun 2008 09:04:15 -0700 From: "H. Peter Anvin" User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: Glauber Costa CC: Yinghai Lu , Ingo Molnar , Thomas Gleixner , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] x86: merge setup_memory_map with e820 References: <200806161303.31997.yhlu.kernel@gmail.com> <200806161958.28627.yhlu.kernel@gmail.com> <5d6222a80806170531g50a72ea2r963bba8e404e619f@mail.gmail.com> In-Reply-To: <5d6222a80806170531g50a72ea2r963bba8e404e619f@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 877 Lines: 25 Glauber Costa wrote: >> + boot_params.e820_entries = new_nr; >> + if (copy_e820_map(boot_params.e820_map, boot_params.e820_entries) < 0) { >> +#ifdef CONFIG_X86_64 >> + early_panic("Cannot find a valid memory map"); >> +#else > > Can't this be made dependant on HIGHMEM instead of X86_64? It seems > high-memory dependant anyway. Also, are you sure > this code that maps into himem would work with HIGHMEM disabled anyway? > Uhm... x86-64 and HIGHMEM are mutually exclusive. Either way, it shouldn't be dependent on anything; there is no reason why the #else clause can't be applied to both. -hpa -- 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/