mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-29 16:10:24 +09:00
x86: qemu: qfw: Implement acpi_get_rsdp_addr()
U-Boot on QEMU does not build ACPI table by ourself, instead it uses the prebuilt ACPI table via the qfw interface. This implements the qfw version of acpi_get_rsdp_addr() for setup_zimage(). Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
parent
45410da714
commit
2d1c661915
@ -222,6 +222,14 @@ out:
|
|||||||
free(table_loader);
|
free(table_loader);
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ulong acpi_get_rsdp_addr(void)
|
||||||
|
{
|
||||||
|
struct fw_file *file;
|
||||||
|
|
||||||
|
file = qemu_fwcfg_find_file("etc/acpi/rsdp");
|
||||||
|
return file->addr;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Read configuration item using fw_cfg PIO interface */
|
/* Read configuration item using fw_cfg PIO interface */
|
||||||
|
Loading…
Reference in New Issue
Block a user