[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 09/25/2013 04:44 PM, Ian Campbell wrote: > 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)? > I will send a patch for the both macro and update this patch. -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |