From 2d51dd662526eef23766d7c4299fd7555a7876bf Mon Sep 17 00:00:00 2001 From: Marshall Dawson Date: Mon, 27 Nov 2017 16:12:50 -0700 Subject: [PATCH] soc/amd/common: Make agesa_heap_base non-static The cbmem location holding the heap will be used to store additional information in subsequent patches. Remove the static designation from agesa_heap_base. Change-Id: Ic607432fd6500ef69b5d47793896cf12a699d8b7 Signed-off-by: Marshall Dawson Reviewed-on: https://review.coreboot.org/22721 Reviewed-by: Paul Menzel Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- src/soc/amd/common/block/include/amdblocks/agesawrapper.h | 2 ++ src/soc/amd/common/block/pi/heapmanager.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/soc/amd/common/block/include/amdblocks/agesawrapper.h b/src/soc/amd/common/block/include/amdblocks/agesawrapper.h index 70e6830718..5c2f4eb9dd 100644 --- a/src/soc/amd/common/block/include/amdblocks/agesawrapper.h +++ b/src/soc/amd/common/block/include/amdblocks/agesawrapper.h @@ -62,4 +62,6 @@ void SetNbEnvParams(GNB_ENV_CONFIGURATION *params); void SetFchMidParams(FCH_INTERFACE *params); void SetNbMidParams(GNB_MID_CONFIGURATION *params); +void *agesa_heap_base(void); + #endif /* __AGESAWRAPPER_H__ */ diff --git a/src/soc/amd/common/block/pi/heapmanager.c b/src/soc/amd/common/block/pi/heapmanager.c index ced0f0ed65..6b47ec3ac0 100644 --- a/src/soc/amd/common/block/pi/heapmanager.c +++ b/src/soc/amd/common/block/pi/heapmanager.c @@ -19,7 +19,7 @@ #include #include -static void *agesa_heap_base(void) +void *agesa_heap_base(void) { struct cbmem_usage *heap; heap = (struct cbmem_usage *)cbmem_add(CBMEM_ID_RESUME_SCRATCH,