hv: modularization: make parse_hv_cmdline() an internal function.

This way, we void exposing acrn_mbi as a global variable.

Tracked-On: #5661
Signed-off-by: Vijay Dhanraj <vijay.dhanraj@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
This commit is contained in:
Liang Yi
2021-01-18 06:22:29 +08:00
committed by wenlingz
parent f6aa0a70c5
commit c23e557a18
6 changed files with 33 additions and 49 deletions

View File

@@ -76,18 +76,10 @@ struct acrn_multiboot_info {
struct efi_info mi_efi_info;
};
/*
* The extern declaration for acrn_mbi is for cmdline.c use only, other functions should use
* get_multiboot_info() API to access struct acrn_mbi because it has explict @post condition
*/
extern struct acrn_multiboot_info acrn_mbi;
void init_acrn_multiboot_info(void);
struct acrn_multiboot_info *get_multiboot_info(void);
int32_t sanitize_multiboot_info(void);
void parse_hv_cmdline(void);
#endif /* ASSEMBLER */
#endif /* MULTIBOOT_H */