summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Held <felix-coreboot@felixheld.de>2024-01-30 21:50:26 +0100
committerFelix Held <felix-coreboot@felixheld.de>2024-02-01 11:36:25 +0000
commitc0474785fb98246e3a62730f08ba6d947c43a53f (patch)
tree7a1b6d3162de1bbbf24afbb955d1b2ca34a74d93
parent5881f8ae3658bf3a4d5bf13a6b9c4c092c08a997 (diff)
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 <felix-coreboot@felixheld.de> Change-Id: Iccc2e0556ce8688d933506e0db5cc4b83c66ac76 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80265 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Varshit Pandya <pandyavarshit@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
-rw-r--r--src/vendorcode/amd/opensil/genoa_poc/memmap.c2
-rw-r--r--src/vendorcode/amd/opensil/genoa_poc/opensil.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/vendorcode/amd/opensil/genoa_poc/memmap.c b/src/vendorcode/amd/opensil/genoa_poc/memmap.c
index 4e5b4576f3..8b54b5f567 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 473238d04a..77b3c4b692 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);