diff options
author | gdong1 <guo.dong@intel.com> | 2016-10-26 16:48:40 -0700 |
---|---|---|
committer | Maurice Ma <maurice.ma@intel.com> | 2016-10-26 17:11:54 -0700 |
commit | 2d90b74d027b457615c0739ac9114a976be9eaed (patch) | |
tree | 329c5e2ede4a6bd69c83218932c8f3492ccf727a /CorebootModulePkg/Include/Library/CbParseLib.h | |
parent | c46bf81d2d966d51b07f7bf16c202f8fc1c4d50b (diff) | |
download | edk2-platforms-2d90b74d027b457615c0739ac9114a976be9eaed.tar.xz |
CorebootModulePkg: Fix memmap issue
Some reserved memory (e.g. CSE reserved memory) might be in the
middle of usable physical memory. The current memory map caculation
could not handle this case. This patch fixed this issue.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: gdong1 <guo.dong@intel.com>
Reviewed-by: Maurice Ma <maurice.ma@intel.com>
Diffstat (limited to 'CorebootModulePkg/Include/Library/CbParseLib.h')
-rw-r--r-- | CorebootModulePkg/Include/Library/CbParseLib.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/CorebootModulePkg/Include/Library/CbParseLib.h b/CorebootModulePkg/Include/Library/CbParseLib.h index a023246d71..064baf3d0c 100644 --- a/CorebootModulePkg/Include/Library/CbParseLib.h +++ b/CorebootModulePkg/Include/Library/CbParseLib.h @@ -14,21 +14,23 @@ **/
#include <Guid/FrameBufferInfoGuid.h>
+typedef RETURN_STATUS \
+ (*CB_MEM_INFO_CALLBACK) (UINT64 Base, UINT64 Size, UINT32 Type, VOID *Param);
+
/**
Acquire the memory information from the coreboot table in memory.
- @param pLowMemorySize Pointer to the variable of low memory size
- @param pHighMemorySize Pointer to the variable of high memory size
+ @param MemInfoCallback The callback routine
+ @param pParam Pointer to the callback routine parameter
@retval RETURN_SUCCESS Successfully find out the memory information.
- @retval RETURN_INVALID_PARAMETER Invalid input parameters.
@retval RETURN_NOT_FOUND Failed to find the memory information.
**/
RETURN_STATUS
CbParseMemoryInfo (
- IN UINT64* pLowMemorySize,
- IN UINT64* pHighMemorySize
+ IN CB_MEM_INFO_CALLBACK MemInfoCallback,
+ IN VOID *pParam
);
/**
|