From a273753c729eeb2bde30ad8886649a5058430461 Mon Sep 17 00:00:00 2001 From: Marc Jones Date: Fri, 12 Jan 2018 16:52:29 +0000 Subject: Revert "soc/amd/common/pi: Fix issue in AGESA heap allocator" This reverts commit 0f5651584ebb8e2ccfa151275bfd2f70e74bae9b. This is not the correct fix for the heap allocator. It looks like the root cause is in the buffer size of the deallocate function. Change-Id: I33c479a30d89a665677d3e4914194ae8136504af Signed-off-by: Marc Jones Reviewed-on: https://review.coreboot.org/23245 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) Reviewed-by: Chris Ching Reviewed-by: Martin Roth --- src/soc/amd/common/block/include/amdblocks/BiosCallOuts.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/soc/amd/common/block/include/amdblocks') diff --git a/src/soc/amd/common/block/include/amdblocks/BiosCallOuts.h b/src/soc/amd/common/block/include/amdblocks/BiosCallOuts.h index 87856003f3..2302889e6b 100644 --- a/src/soc/amd/common/block/include/amdblocks/BiosCallOuts.h +++ b/src/soc/amd/common/block/include/amdblocks/BiosCallOuts.h @@ -34,8 +34,6 @@ typedef struct _BIOS_BUFFER_NODE { UINT32 NextNodeOffset; } BIOS_BUFFER_NODE; -#define MIN_BUFFER_NODE_SIZE (sizeof(BIOS_BUFFER_NODE) + sizeof(uint32_t)) - AGESA_STATUS agesa_AllocateBuffer(UINT32 Func, UINTN Data, VOID *ConfigPtr); AGESA_STATUS agesa_DeallocateBuffer(UINT32 Func, UINTN Data, VOID *ConfigPtr); AGESA_STATUS agesa_LocateBuffer(UINT32 Func, UINTN Data, VOID *ConfigPtr); -- cgit v1.2.3