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

Re: [Xen-devel] [PATCH 1/2] xen/arm: Add support to load initrd in dom0



On Wed, 2013-09-25 at 16:36 +0100, Julien Grall wrote:

> Right, what about?
> 
> #define ALIGN_2MB(size) ((len) + ((1 << 20 - 1)) & (~((1 << 20) - 1))
> new_size = ALIGN_2MB(dtb_size) + ALIGN_2MB(initrd_size)

Hard to believe we don't have an ALIGN or ROUNDUP macro already in a
common header! How about we move the one from device_tree.c somewhere
more generic?

We could also add #define MB(x) ((x)<<20) alongside the existing GB(x)?


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