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

Re: [Xen-devel] [PATCH] xen: arm: handle initrd addresses above the 4G boundary



On Fri, 2013-12-06 at 17:39 +0000, Julien Grall wrote:
> >> Perhaps you update the comment by saying we are assuming bytes is 4-byte
> >> aligned.
> >
> > Maybe it would be better to round up?
> 
> No because if we round up, we would read to much data. dt_read_number is 
> not able to check the size.

Right.

I think what I shall do is change the caller to accept exactly
sizeof(u32) or sizeof(u64) bytes and not any value between.

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®.