SetVirtualAddressMap() on Tiano EFI firmware
Bjorn Helgaas
bjorn.helgaas at hp.com
Thu Oct 2 14:16:03 EDT 2008
On Thursday 11 September 2008 02:23:58 pm Bjorn Helgaas wrote:
> ...
> The following patch makes kexec-tools work on either old or new
> firmware. Masking out the top nibble of either a physical address
> or a virtual address in region 7 results in a physical address.
>
> diff --git a/purgatory/arch/ia64/purgatory-ia64.c b/purgatory/arch/ia64/purgatory-ia64.c
> index b2fe6d4..acacb56 100644
> --- a/purgatory/arch/ia64/purgatory-ia64.c
> +++ b/purgatory/arch/ia64/purgatory-ia64.c
> @@ -147,7 +147,7 @@ setup_arch(void)
>
> inline unsigned long PA(unsigned long addr)
> {
> - return addr - PAGE_OFFSET;
> + return addr & 0x0fffffffffffffffLL;
> }
>
> void
>
I haven't seen any activity on this.
Simon, if nobody objects to it, would you consider the patch above
for kexec-tools?
Bjorn
More information about the kexec
mailing list