mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 01:44:34 +00:00
sandbox: acpi: Correct mapping in FADT
The values in the FADT are pointers so should not go through sandbox's normal addr<->pointer mapping. Fix this. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
bac7ca510e
commit
698c00e0b7
1 changed files with 2 additions and 2 deletions
|
@ -255,8 +255,8 @@ int acpi_write_fadt(struct acpi_ctx *ctx, const struct acpi_writer *entry)
|
|||
header->creator_revision = 1;
|
||||
fadt->minor_revision = 2;
|
||||
|
||||
fadt->x_firmware_ctrl = map_to_sysmem(ctx->facs);
|
||||
fadt->x_dsdt = map_to_sysmem(ctx->dsdt);
|
||||
fadt->x_firmware_ctrl = nomap_to_sysmem(ctx->facs);
|
||||
fadt->x_dsdt = nomap_to_sysmem(ctx->dsdt);
|
||||
|
||||
if (fadt->x_firmware_ctrl < 0x100000000ULL)
|
||||
fadt->firmware_ctrl = fadt->x_firmware_ctrl;
|
||||
|
|
Loading…
Add table
Reference in a new issue