Add an address field, cmdline_pa, to struct boot_module to hold the address of
the string field from struct mod.
Signed-off-by: Daniel P. Smith <dpsmith@apertussolutions.com>
Reviewed-by: Jason Andryuk <jason.andryuk@amd.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
* +-----------------------------------------+
*/
unsigned long headroom;
+
+ paddr_t cmdline_pa;
};
/*
* reserved for Xen.
*/
for ( i = 0; i < MAX_NR_BOOTMODS && i < bi->nr_modules; i++ )
+ {
bi->mods[i].mod = &mods[i];
+ bi->mods[i].cmdline_pa = mods[i].string;
+ }
+
/* Variable 'i' should be one entry past the last module. */
bi->mods[i].mod = &mods[bi->nr_modules];
bi->mods[i].type = BOOTMOD_XEN;