[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH RFC 2/2] xen/arm: patches for 32bit page shift operations



On Tue, 2013-09-17 at 15:30 +0000, ChanJu Park wrote:
> Current some 32bit variables make errors when large physical memory accessed. 
> (more than 4GB)
> For example, left page shifting for the 32bit âidxâ or âgpfnâ variable cuts 
> the highest value after this operation.
> To resolve this, following cast can be applied as a intermediate method.
>    (paddr_t)idx << PAGE_SHIFT,  (paddr_t)gpfn << PAGE_SHIFT

I think we want to use the pfn_to_paddr macro for all of these rather
than open coding the cast + shift and/or changing the types.

Ian.


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.