acpi/acpi.c: Change signature of write_acpi_tables

The argument is copied into current and is never modified.

Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Change-Id: I3084e43ccbe9749bc726af3120decfe8b52e1709
Reviewed-on: https://review.coreboot.org/c/coreboot/+/75902
Reviewed-by: Lean Sheng Tan <sheng.tan@9elements.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Arthur Heymans 2023-06-17 14:08:46 +02:00 committed by Lean Sheng Tan
parent 719b690e99
commit 7ebebf72f8
2 changed files with 2 additions and 2 deletions

View File

@ -1854,7 +1854,7 @@ static void acpidump_print(void *table_ptr)
printk(BIOS_SPEW, "\n");
}
unsigned long write_acpi_tables(unsigned long start)
unsigned long write_acpi_tables(const unsigned long start)
{
unsigned long current;
acpi_rsdp_t *rsdp;

View File

@ -1335,7 +1335,7 @@ unsigned long fw_cfg_acpi_tables(unsigned long start);
/* These are implemented by the target port or north/southbridge. */
void preload_acpi_dsdt(void);
unsigned long write_acpi_tables(unsigned long addr);
unsigned long write_acpi_tables(const unsigned long addr);
unsigned long acpi_fill_madt(unsigned long current);
void acpi_fill_fadt(acpi_fadt_t *fadt);