aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/amd/agesa/family12/fam12_callouts.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/northbridge/amd/agesa/family12/fam12_callouts.c')
-rw-r--r--src/northbridge/amd/agesa/family12/fam12_callouts.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/northbridge/amd/agesa/family12/fam12_callouts.c b/src/northbridge/amd/agesa/family12/fam12_callouts.c
index 491f3ce47b..1d55e9584b 100644
--- a/src/northbridge/amd/agesa/family12/fam12_callouts.c
+++ b/src/northbridge/amd/agesa/family12/fam12_callouts.c
@@ -27,6 +27,7 @@
#include "Hudson-2.h"
#include <cbmem.h>
#include <arch/acpi.h>
+#include <string.h>
UINT32 GetHeapBase(AMD_CONFIG_PARAMS *StdHeader)
{
@@ -43,6 +44,12 @@ UINT32 GetHeapBase(AMD_CONFIG_PARAMS *StdHeader)
return heap;
}
+void EmptyHeap(void)
+{
+ void *BiosManagerPtr = (void *) GetHeapBase(NULL);
+ memset(BiosManagerPtr, 0, BIOS_HEAP_SIZE);
+}
+
AGESA_STATUS BiosAllocateBuffer (UINT32 Func, UINT32 Data, VOID *ConfigPtr)
{
UINT32 AvailableHeapSize;