From c0474785fb98246e3a62730f08ba6d947c43a53f Mon Sep 17 00:00:00 2001 From: Felix Held Date: Tue, 30 Jan 2024 21:50:26 +0100 Subject: vc/amd/opensil/genoa_poc/memmap: use unsigned long for resource index Use an unsigned long as resource index type instead of an int to match the data type used for the index in the resource struct and the functions to report the resources. Signed-off-by: Felix Held Change-Id: Iccc2e0556ce8688d933506e0db5cc4b83c66ac76 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80265 Reviewed-by: Arthur Heymans Reviewed-by: Varshit Pandya Tested-by: build bot (Jenkins) --- src/vendorcode/amd/opensil/genoa_poc/memmap.c | 2 +- src/vendorcode/amd/opensil/genoa_poc/opensil.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/vendorcode') diff --git a/src/vendorcode/amd/opensil/genoa_poc/memmap.c b/src/vendorcode/amd/opensil/genoa_poc/memmap.c index 4e5b4576f386..8b54b5f56721 100644 --- a/src/vendorcode/amd/opensil/genoa_poc/memmap.c +++ b/src/vendorcode/amd/opensil/genoa_poc/memmap.c @@ -84,7 +84,7 @@ static void print_memory_holes(void *unused) BOOT_STATE_INIT_ENTRY(BS_DEV_RESOURCES, BS_ON_ENTRY, print_memory_holes, NULL); // This assumes holes are allocated -int add_opensil_memmap(struct device *dev, int idx) +unsigned long add_opensil_memmap(struct device *dev, unsigned long idx) { ram_from_to(dev, idx++, 0, 0xa0000); mmio_from_to(dev, idx++, 0xa0000, 0xc0000); // legacy VGA diff --git a/src/vendorcode/amd/opensil/genoa_poc/opensil.h b/src/vendorcode/amd/opensil/genoa_poc/opensil.h index 473238d04a67..77b3c4b69207 100644 --- a/src/vendorcode/amd/opensil/genoa_poc/opensil.h +++ b/src/vendorcode/amd/opensil/genoa_poc/opensil.h @@ -8,7 +8,7 @@ void SIL_STATUS_report(const char *function, const int status); // Add the memory map to dev, starting at index idx, returns last use idx -int add_opensil_memmap(struct device *dev, int idx); +unsigned long add_opensil_memmap(struct device *dev, unsigned long idx); // Fill in FADT from openSIL void opensil_fill_fadt_io_ports(acpi_fadt_t *fadt); -- cgit v1.2.3