lkml.org 
[lkml]   [2015]   [Jul]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH V6 1/4] efi: x86: rearrange efi_mem_attributes()
    On Mon, 20 Jul, at 05:32:36PM, Jonathan (Zhixiong) Zhang wrote:
    > From: "Jonathan (Zhixiong) Zhang" <zjzhang@codeaurora.org>
    >
    > x86 and ia64 implement efi_mem_attributes() differently. This
    > function needs to be available for other arch (such as arm64)
    > as well, such as for the purpose of ACPI/APEI.
    >
    > ia64 efi does not setup memmap variable and does not set
    > EFI_MEMMAP flag, so it needs to have its unique implementation
    > of efi_mem_attributes().
    >
    > Move efi_mem_attributes() implementation from x86 to efi, and
    > declare it with __weak. It is recommended that other archs
    > should not override the default implementation.
    >
    > Signed-off-by: Jonathan (Zhixiong) Zhang <zjzhang@codeaurora.org>
    > ---
    > arch/x86/platform/efi/efi.c | 18 ------------------
    > drivers/firmware/efi/efi.c | 31 +++++++++++++++++++++++++++++++
    > 2 files changed, 31 insertions(+), 18 deletions(-)

    Reviewed-by: Matt Fleming <matt.fleming@intel.com>

    --
    Matt Fleming, Intel Open Source Technology Center


    \
     
     \ /
      Last update: 2015-07-22 13:21    [W:2.731 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site