From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752591AbXGaHdq (ORCPT ); Tue, 31 Jul 2007 03:33:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751116AbXGaHdi (ORCPT ); Tue, 31 Jul 2007 03:33:38 -0400 Received: from mga03.intel.com ([143.182.124.21]:28354 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750978AbXGaHdi (ORCPT ); Tue, 31 Jul 2007 03:33:38 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.19,201,1183359600"; d="scan'208";a="256764416" Subject: Re: [PATCH 1/5] x86_64 EFI support -v3: EFI base support From: "Huang, Ying" To: "Eric W. Biederman" Cc: ak@suse.de, akpm@linux-foundation.org, Yinghai Lu , Randy Dunlap , Chandramouli Narayanan , linux-kernel@vger.kernel.org In-Reply-To: References: <1185851572.23149.26.camel@caritas-dev.intel.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 31 Jul 2007 15:33:11 +0800 Message-Id: <1185867191.23149.61.camel@caritas-dev.intel.com> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2 X-OriginalArrivalTime: 31 Jul 2007 07:33:21.0474 (UTC) FILETIME=[1230CA20:01C7D345] Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2007-07-30 at 22:37 -0600, Eric W. Biederman wrote: > "Huang, Ying" writes: > > > Changelog between v2 and v3: > > > > 1. The EFI callwrapper is re-implemented in assembler. > > > > --- > > > > This patch adds basic support for EFI x86_64 system. The main file of > > the patch is the addition of efi.c for x86_64. This file is modeled > > after the EFI IA32 avatar. EFI initialization are implemented in > > efi.c. Some x86_64 specifics are worth noting here. On x86_64, > > parameters passed to UEFI firmware services need to follow the UEFI > > calling convention. For this purpose, a set of functions named > > lin2win ( is the number of parameters) are implemented. EFI > > function calls are wrapped before calling the firmware service. > > > Since the code to generate the e820 map from the efi memory map has > been added to elilo (odd but ok) why does this patch continue to > have code for playing with the efi memory map? EFI memory map is used as the parameter to EFI runtime service call: set_virtual_address_map. It conveys some information not suitable to be described in E820 map, such as, memory region that is memory mapped IO and is used by EFI runtime service. Best Regards, Huang Ying