[PATCH v0 2/4] x86: efi: break efi_lookup_mapped_addr out to generic code

2013-06-24 Thread Leif Lindholm
efi_lookup_mapped_addr is a handy helper function for translating a physical address to the corresponding virtual one by scanning through memmap.map. This patch breaks it out into a new file for use elsewhere. Signed-off-by: Leif Lindholm --- arch/x86/platform/efi/efi.c | 28 ---

[PATCH v0 4/4] init: efi: arm: enable (U)EFI runtime services on arm

2013-06-24 Thread Leif Lindholm
Since the efi_set_virtual_address_map call has strict init ordering requirements, add an explicit hook in the required place. Signed-off-by: Leif Lindholm --- init/main.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/init/main.c b/init/main.c index 9484f4b..c61706e 100644 --- a/in

[PATCH v0 3/4] arm: Add [U]EFI runtime services support

2013-06-24 Thread Leif Lindholm
This patch implements basic support for UEFI runtime services in the ARM architecture - a requirement for using efibootmgr to read and update the system boot configuration. It also locates any presented SMBIOS configuration table and stores it for potential later use by DMI. Signed-off-by: Leif L

[PATCH v0 0/4] arm: [U]EFI runtime services support

2013-06-24 Thread Leif Lindholm
In systems based on [U]EFI-conformant firmware, runtime services provide a standardised way for the kernel to update firmware environment variables. This is used for example by efibootmgr to update which image should be loaded on next boot. This patchset implements basic support for UEFI runtime s

[PATCH v0 1/4] Documentation: arm: [U]EFI runtime services

2013-06-24 Thread Leif Lindholm
This patch provides documentation of the [U]EFI runtime services and configuration features. Signed-off-by: Leif Lindholm --- Documentation/arm/00-INDEX |3 +++ Documentation/arm/uefi.txt | 39 +++ 2 files changed, 42 insertions(+) create mode 100644 Do

[PATCH v0 2/2] arm: add early_ioremap support

2013-06-24 Thread Leif Lindholm
This patch adds support for early_ioremap, based on the existing mechanism in x86. Up to 7 regions of up to 128KB each can be temporarily mapped in before paging_init, regardless of later highmem status. Signed-off-by: Leif Lindholm --- arch/arm/Kconfig | 20 +++ arch/arm/include/

[PATCH v0 1/2] Documentation: arm: early_ioremap

2013-06-24 Thread Leif Lindholm
This patch provides documentation of the early_ioremap() functionality, including its implementation and usage instructions. Signed-off-by: Leif Lindholm --- Documentation/arm/00-INDEX |2 ++ Documentation/arm/early_ioremap.txt | 12 2 files changed, 14 insertions(+)

[PATCH v0 0/2] arm: add early_ioremap() support

2013-06-24 Thread Leif Lindholm
x86 and ia64 have the early_ioremap()/early_iounmap() functions, which are useful for supporting things like UEFI, ACPI and SMBIOS, where configuration tables need to be parsed before proper memory management is available, regardless of highmem status. This patchset implements a restricted form of

Re: [edk2] [PATCH] MdeModulePkg: fix compilation errors

2013-06-24 Thread Ryan Harkin
On 24 June 2013 11:44, Leif Lindholm wrote: > On 24 June 2013 10:08, Ryan Harkin wrote: >> On 24 June 2013 08:44, Dong, Eric wrote: >>> This change is not correct, the "Buffer" variable is not defined. >> >> Hmmm, isn't that curious! I've not really looked that this change >> before, which is m

Re: [edk2] [PATCH] MdeModulePkg: fix compilation errors

2013-06-24 Thread Leif Lindholm
On 24 June 2013 10:08, Ryan Harkin wrote: > On 24 June 2013 08:44, Dong, Eric wrote: >> This change is not correct, the "Buffer" variable is not defined. > > Hmmm, isn't that curious! I've not really looked that this change > before, which is my mistake for accepting it, but you're right, Buffer

Re: [edk2] [PATCH] MdeModulePkg: fix compilation errors

2013-06-24 Thread Ryan Harkin
On 24 June 2013 08:44, Dong, Eric wrote: > This change is not correct, the "Buffer" variable is not defined. Hmmm, isn't that curious! I've not really looked that this change before, which is my mistake for accepting it, but you're right, Buffer is not defined. I think look into this one proper