mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 23:24:56 +00:00
HV: modularization: use cmdline char array in acrn boot info
The name of mi_cmdline in acrn_boot_info structure would cause confusion with mi_cmdline in multiboot_info structure, rename it to cmdline. At the same time, the data type is changed from pointer to array to avoid accessing the original multiboot info region which might be used by other software modules. Tracked-On: #5661 Signed-off-by: Victor Sun <victor.sun@intel.com> Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
@@ -31,9 +31,9 @@ static void parse_hvdbg_cmdline(void)
|
||||
const char *end = NULL;
|
||||
struct acrn_boot_info *abi = get_acrn_boot_info();
|
||||
|
||||
start = abi->mi_cmdline;
|
||||
start = abi->cmdline;
|
||||
|
||||
while ((start != NULL) && ((*start) != '\0')) {
|
||||
while ((*start) != '\0') {
|
||||
while ((*start) == ' ')
|
||||
start++;
|
||||
if ((*start) != '\0') {
|
||||
|
||||
Reference in New Issue
Block a user