lkml.org 
[lkml]   [2008]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86/xen: fix arbitrary_virt_to_machine()
Ingo Molnar wrote:
> unsigned int level;
> pte_t *pte = lookup_address(address, &level);
> - unsigned offset = address & PAGE_MASK;
> + unsigned offset = address & ~PAGE_SIZE;
>

Ah, no, you have the worst of both worlds there ;) Should be ~PAGE_*MASK*.

J


\
 
 \ /
  Last update: 2008-05-16 15:03    [W:0.039 / U:1.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site