mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-28 08:16:54 +00:00
DM: export acpi table base address and length.
Will update e820 table to mark the address ACPI specific type. Also need pass ACPI table start address and size to vsbl. Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
parent
dc0349e5bb
commit
fdd9e76f1b
@ -74,6 +74,7 @@
|
||||
* the individual tables
|
||||
*/
|
||||
#define ACPI_BASE 0xf2400
|
||||
#define ACPI_LENGTH (0x100000 - ACPI_BASE)
|
||||
#define RSDT_OFFSET 0x040
|
||||
#define XSDT_OFFSET 0x080
|
||||
#define MADT_OFFSET 0x100
|
||||
@ -973,6 +974,18 @@ acpi_table_enable(int num)
|
||||
basl_ftables[num].valid = true;
|
||||
}
|
||||
|
||||
uint32_t
|
||||
get_acpi_base(void)
|
||||
{
|
||||
return basl_acpi_base;
|
||||
}
|
||||
|
||||
uint32_t
|
||||
get_acpi_table_length(void)
|
||||
{
|
||||
return ACPI_LENGTH;
|
||||
}
|
||||
|
||||
int
|
||||
acpi_build(struct vmctx *ctx, int ncpu)
|
||||
{
|
||||
|
@ -44,6 +44,8 @@
|
||||
#define NHLT_ENTRY_NO 8
|
||||
|
||||
void acpi_table_enable(int num);
|
||||
uint32_t get_acpi_base(void);
|
||||
uint32_t get_acpi_table_length(void);
|
||||
|
||||
struct vmctx;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user