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

Re: [Xen-devel] [PATCH v4 16/17] libxl: build a device tree for ARM guests



On Tue, 2013-11-12 at 19:51 +0000, Stefano Stabellini wrote:
> > +    res = fdt_property_cell(fdt, "phandle", PHANDLE_GIC);
> > +    if (res) return res;
> 
> Why are you adding this property?

When you write e.g. "interrupt-parent = <&gic>" what you are actually
doing is creating a cell with a reference the phandle of the node called
"gic". If you decompile a dtb you'll see that the gic node has a
property "phandle = N" (where N is some unique integer) and that other
nodes have "interrupt-parent = <N>".

So this is adding that phandle property so we can refer to it.

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