diff options
| author | Ilias Apalodimas <[email protected]> | 2025-04-03 08:34:44 +0300 |
|---|---|---|
| committer | Heinrich Schuchardt <[email protected]> | 2025-04-03 08:58:27 +0200 |
| commit | 37a33d326e104ad725bcf127d3ffc59a5f9d58e6 (patch) | |
| tree | 6f5cb8079468a9bef3b772ac6b3c41a50b709791 /drivers/misc | |
| parent | c17f03a7e93dfbbe5d32f5738274187065d9493f (diff) | |
acpi: Fix table length for QEMU
The end of the ACPI table is set to 'addr' instead of 'end'. The ACPI
code for QEMU relies on those values to mark memory as 'ACPI Reclaim'
and as a result the ACPI RSDP ends up in Boot services Data.
Reported-by: Björn Töpel <[email protected]>
Fixes: commit 638cc363484b ("acpi: enable writing ACPI tables on QEMU")
Signed-off-by: Ilias Apalodimas <[email protected]>
Reviewed-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'drivers/misc')
| -rw-r--r-- | drivers/misc/qfw_acpi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/qfw_acpi.c b/drivers/misc/qfw_acpi.c index 0d0cf764689..77cebae5e3f 100644 --- a/drivers/misc/qfw_acpi.c +++ b/drivers/misc/qfw_acpi.c @@ -305,7 +305,7 @@ static int evt_write_acpi_tables(void) /* Generate ACPI tables */ end = write_acpi_tables(addr); gd->arch.table_start = addr; - gd->arch.table_end = addr; + gd->arch.table_end = end; return 0; } |
