hv: modularization: remove get_rsdp_ptr() from multboot API.

This function is a derivative of get_multiboot_info().

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:10:35 +08:00 committed by wenlingz
parent 101004603a
commit f6aa0a70c5
3 changed files with 1 additions and 15 deletions

View File

@ -70,7 +70,7 @@ static struct acpi_table_rsdp *get_rsdp(void)
if (acpi_rsdp != NULL) {
rsdp = acpi_rsdp;
} else {
rsdp = (struct acpi_table_rsdp *)get_rsdp_ptr();
rsdp = (struct acpi_table_rsdp *)(get_multiboot_info()->mi_acpi_rsdp_va);
if (rsdp == NULL) {
uint16_t *addr;

View File

@ -87,7 +87,6 @@ struct acrn_multiboot_info *get_multiboot_info(void);
int32_t sanitize_multiboot_info(void);
void parse_hv_cmdline(void);
const void* get_rsdp_ptr(void);
#endif /* ASSEMBLER */

View File

@ -176,16 +176,3 @@ struct acrn_multiboot_info *get_multiboot_info(void)
{
return &acrn_mbi;
}
const void* get_rsdp_ptr(void)
{
const void *rsdp_ptr;
if (boot_from_multiboot2()) {
rsdp_ptr = acrn_mbi.mi_acpi_rsdp_va;
} else {
rsdp_ptr = NULL;
}
return rsdp_ptr;
}