[coreboot-gerrit] Change in coreboot[master]: amd/common: Remove GetHeapBase camel case

Marshall Dawson (Code Review) gerrit at coreboot.org
Fri Dec 15 20:36:42 CET 2017


Marshall Dawson has uploaded this change for review. ( https://review.coreboot.org/22903


Change subject: amd/common: Remove GetHeapBase camel case
......................................................................

amd/common: Remove GetHeapBase camel case

A subsequent patch will use GetHeapBase() in more files than
heapmanager.c.  Convert it to a format more similar to existing
coreboot source.

Change-Id: I8362af849fc9d7cb1b8a93113e8d78dcac51c20a
Signed-off-by: Marshall Dawson <marshalldawson3rd at gmail.com>
---
M src/soc/amd/common/block/pi/heapmanager.c
1 file changed, 5 insertions(+), 5 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/03/22903/1

diff --git a/src/soc/amd/common/block/pi/heapmanager.c b/src/soc/amd/common/block/pi/heapmanager.c
index bdc1133..fbcfc48 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 *GetHeapBase(void)
+static void *agesa_heap_base(void)
 {
 	struct cbmem_usage *heap;
 	heap = (struct cbmem_usage *)cbmem_add(CBMEM_ID_RESUME_SCRATCH,
@@ -29,7 +29,7 @@
 
 static void EmptyHeap(int unused)
 {
-	void *BiosManagerPtr = GetHeapBase();
+	void *BiosManagerPtr = agesa_heap_base();
 	memset(BiosManagerPtr, 0, BIOS_HEAP_SIZE);
 }
 
@@ -60,7 +60,7 @@
 	AllocParams->BufferPointer = NULL;
 
 	AvailableHeapSize = BIOS_HEAP_SIZE - sizeof(BIOS_HEAP_MANAGER);
-	BiosHeapBaseAddr = GetHeapBase();
+	BiosHeapBaseAddr = agesa_heap_base();
 	BiosHeapBasePtr = (BIOS_HEAP_MANAGER *)BiosHeapBaseAddr;
 
 	if (BiosHeapBasePtr->StartOfAllocatedNodes == 0) {
@@ -217,7 +217,7 @@
 
 	AllocParams = (AGESA_BUFFER_PARAMS *)ConfigPtr;
 
-	BiosHeapBaseAddr = GetHeapBase();
+	BiosHeapBaseAddr = agesa_heap_base();
 	BiosHeapBasePtr = (BIOS_HEAP_MANAGER *)BiosHeapBaseAddr;
 
 	/* Find target node to deallocate in list of allocated nodes.
@@ -339,7 +339,7 @@
 
 	AllocParams = (AGESA_BUFFER_PARAMS *)ConfigPtr;
 
-	BiosHeapBaseAddr = GetHeapBase();
+	BiosHeapBaseAddr = agesa_heap_base();
 	BiosHeapBasePtr = (BIOS_HEAP_MANAGER *)BiosHeapBaseAddr;
 
 	AllocNodeOffset = BiosHeapBasePtr->StartOfAllocatedNodes;

-- 
To view, visit https://review.coreboot.org/22903
To unsubscribe, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8362af849fc9d7cb1b8a93113e8d78dcac51c20a
Gerrit-Change-Number: 22903
Gerrit-PatchSet: 1
Gerrit-Owner: Marshall Dawson <marshalldawson3rd at gmail.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20171215/511c442f/attachment.html>


More information about the coreboot-gerrit mailing list