Re: [PATCH] Fix left over EFI cache mapping problems

From: Huang, Ying
Date: Fri Feb 15 2008 - 04:21:03 EST


On Fri, 2008-02-15 at 09:48 +0100, Andi Kleen wrote:
> On Fri, Feb 15, 2008 at 12:48:06PM +0800, Huang, Ying wrote:
> >
> > This patch has been tested on Intel x86 platform with EFI 32/64.
>
> Can EFI_PAGE_SIZE ever be < 4k? If yes you would need to round up
> first to linux page size before shifting.

Yes. It is needed. And md->virt_addr should be processed as follow:

md->virt_addr & PAGE_MASK

before fed into set_memory_*.

Best Regards,
Huang Ying

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/