]> xenbits.xensource.com Git - people/aperard/xen-arm.git/commitdiff
xen: arm: introduce concept of modules which can be in RAM at start of day
authorIan Campbell <ian.campbell@citrix.com>
Mon, 21 Jan 2013 12:40:26 +0000 (12:40 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 21 Jan 2013 12:40:26 +0000 (12:40 +0000)
The intention is that these will eventually be filled in with
information from the bootloader, perhaps via a DTB binding.

Allow for 2 modules (kernel and initrd), plus a third pseudo-module
which is the hypervisor itself. Currently we neither parse nor do
anything with them.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
xen/include/xen/device_tree.h

index a0e3a979224bdcde678cebe08d132f3c6a3f1680..52ef2585841ebea4068f13431c3c5609d99ae932 100644 (file)
@@ -15,6 +15,7 @@
 #define DEVICE_TREE_MAX_DEPTH 16
 
 #define NR_MEM_BANKS 8
+#define NR_MODULES 2
 
 struct membank {
     paddr_t start;
@@ -33,9 +34,22 @@ struct dt_gic_info {
     paddr_t gic_vcpu_addr;
 };
 
+struct dt_mb_module {
+    paddr_t start;
+    paddr_t size;
+    char cmdline[1024];
+};
+
+struct dt_module_info {
+    int nr_mods;
+    /* Module 0 is Xen itself, followed by the provided modules-proper */
+    struct dt_mb_module module[NR_MODULES + 1];
+};
+
 struct dt_early_info {
     struct dt_mem_info mem;
     struct dt_gic_info gic;
+    struct dt_module_info modules;
 };
 
 typedef int (*device_tree_node_func)(const void *fdt,