>>> On 27.04.17 at 16:35, <roger....@citrix.com> wrote: > +#define REGISTER_VPCI_INIT(f, p) \ > + static const struct vpci_register_init \ > + x##_entry __used_section(".data.vpci") = { \ > + .init = f, \ > + .priority = p, \ > +}
I think I'd rather see this done by ordering the entries in .data.vpci suitably, e.g. by adding numeric tags and using SORT() or some such in the linker script. Iirc upstream Linux did change to such a model for some of their initialization, so you may be able to glean something there. Jan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel