mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-23 14:07:42 +00:00
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:
parent
101004603a
commit
f6aa0a70c5
@ -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;
|
||||
|
||||
|
@ -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 */
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user