This field can be used by any modify_dtb() function to pass additional arguments requested to build the modified dtb. This is needed for creating the platform bus dynamic sysbus nodes. Signed-off-by: Eric Auger <eric.auger@xxxxxxxxxx> --- include/hw/arm/arm.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/hw/arm/arm.h b/include/hw/arm/arm.h index 5f1ecb7..ff776fa 100644 --- a/include/hw/arm/arm.h +++ b/include/hw/arm/arm.h @@ -68,6 +68,10 @@ struct arm_boot_info { hwaddr dtb_start; /* start address of the dtb */ hwaddr dtb_limit; /* upper RAM limit the dtb cannot overshoot */ hwaddr entry; + /* in case modify_dtb requires additional parameters to create the + * the new nodes, use following opaque + */ + void *modify_dtb_opaque; }; void arm_load_kernel(ARMCPU *cpu, struct arm_boot_info *info); int arm_load_dtb(const struct arm_boot_info *binfo); -- 1.8.3.2 _______________________________________________ kvmarm mailing list kvmarm@xxxxxxxxxxxxxxxxxxxxx https://lists.cs.columbia.edu/mailman/listinfo/kvmarm