Felix Held has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/50370 )
Change subject: soc/amd/common/memmap: use proper type in memmap_early_dram struct ......................................................................
soc/amd/common/memmap: use proper type in memmap_early_dram struct
Signed-off-by: Felix Held felix-coreboot@felixheld.de Reported-by: Angel Pons th3fanbus@gmail.com Change-Id: I295bfcb05571492adbe81ffc579a835be4abffe1 --- M src/soc/amd/common/block/cpu/noncar/memmap.c M src/soc/amd/common/block/include/amdblocks/memmap.h 2 files changed, 4 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/70/50370/1
diff --git a/src/soc/amd/common/block/cpu/noncar/memmap.c b/src/soc/amd/common/block/cpu/noncar/memmap.c index 9efe959..d631785 100644 --- a/src/soc/amd/common/block/cpu/noncar/memmap.c +++ b/src/soc/amd/common/block/cpu/noncar/memmap.c @@ -14,7 +14,7 @@ if (!e) die("ERROR: Failed to stash early dram usage!\n");
- e->base = (uint32_t)(uintptr_t)_early_reserved_dram; + e->base = (uintptr_t)_early_reserved_dram; e->size = REGION_SIZE(early_reserved_dram); }
diff --git a/src/soc/amd/common/block/include/amdblocks/memmap.h b/src/soc/amd/common/block/include/amdblocks/memmap.h index a748e57..28bc852 100644 --- a/src/soc/amd/common/block/include/amdblocks/memmap.h +++ b/src/soc/amd/common/block/include/amdblocks/memmap.h @@ -3,14 +3,14 @@ #ifndef AMD_BLOCK_MEMMAP_H #define AMD_BLOCK_MEMMAP_H
-#include <stdint.h> #include <symbols.h> +#include <types.h>
DECLARE_REGION(early_reserved_dram)
struct memmap_early_dram { - uint32_t base; - uint32_t size; + uintptr_t base; + size_t size; };
void memmap_stash_early_dram_usage(void);