lkml.org 
[lkml]   [2013]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH -v2] EFI: Runtime services virtual mapping
On 10/02/2013 11:42 AM, Borislav Petkov wrote:
>
> Yes, so the alignment has to be such that both PA and VA are the same
> amount of 4K pages away from the next 2M boundary, to put it bluntly.
>
> I have a couple of ideas on how to do that.
>

It's pretty straightforward - just drop the starting address to proper
alignment after you subtract the size.

-hpa




\
 
 \ /
  Last update: 2013-10-02 21:01    [W:0.180 / U:4.536 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site