summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarshall Dawson <marshalldawson3rd@gmail.com>2017-11-27 16:12:50 -0700
committerMartin Roth <martinroth@google.com>2018-01-19 19:47:43 +0000
commit2d51dd662526eef23766d7c4299fd7555a7876bf (patch)
tree0f1c02e1dcac3681a2986426cdd8453ab9c22890 /src
parent21c5e151249155be29d607087b258f6ccb524b59 (diff)
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 <marshalldawson3rd@gmail.com> Reviewed-on: https://review.coreboot.org/22721 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/soc/amd/common/block/include/amdblocks/agesawrapper.h2
-rw-r--r--src/soc/amd/common/block/pi/heapmanager.c2
2 files changed, 3 insertions, 1 deletions
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 <cbmem.h>
#include <string.h>
-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,