diff options
author | Bin Meng <bmeng@tinylab.org> | 2023-05-09 15:21:49 +0800 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2023-05-11 16:49:50 +0000 |
commit | f3027b809c1cab1a336df57f44e640ef2f632a1c (patch) | |
tree | 46a9a48e3727ec47cc82799c7eafb3722cbb915b /src/acpi | |
parent | 3e304e5257d30920101e82510a17abe20b581d68 (diff) |
acpi/acpi.c: Assign coreboot_rsdp for QEMU
At present coreboot_rsdp remains unset for QEMU, which results in
an incomplete LB_TAG_ACPI_RSDP coreboot table generated.
Fix this by assigning coreboot_rsdp properly.
TEST=Build coreboot for QEMU x86 i440fx (default) with U-Boot x86
as the payload, boot coreboot.rom with QEMU, and run 'acpi list'
from U-Boot shell to show the ACPI tables.
Signed-off-by: Bin Meng <bmeng@tinylab.org>
Change-Id: I5bc3f0528d4431fd388ca52b8865f9be0e1faf92
Reviewed-on: https://review.coreboot.org/c/coreboot/+/75088
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@mailbox.org>
Reviewed-by: Tim Wawrzynczak <inforichland@gmail.com>
Diffstat (limited to 'src/acpi')
-rw-r--r-- | src/acpi/acpi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/acpi/acpi.c b/src/acpi/acpi.c index 10b0707b10..4fdbd6fcef 100644 --- a/src/acpi/acpi.c +++ b/src/acpi/acpi.c @@ -1857,6 +1857,7 @@ unsigned long write_acpi_tables(unsigned long start) for (void *p = (void *)current; p < (void *)fw; p += 16) { if (valid_rsdp((acpi_rsdp_t *)p)) { rsdp = p; + coreboot_rsdp = (uintptr_t)rsdp; break; } } |