diff options
author | Cinnamon Shia <cinnamon.shia@hpe.com> | 2016-06-28 17:40:35 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2016-06-29 09:46:51 +0800 |
commit | 848e14723964231cc64dfe71342201237979e9fb (patch) | |
tree | a220e9c34e545ed87a604932e114760164b38d10 /MdeModulePkg/Include | |
parent | c99bcf3d8aa5c098881360e8598b4c9e612d0a2b (diff) | |
download | edk2-848e14723964231cc64dfe71342201237979e9fb.tar.gz edk2-848e14723964231cc64dfe71342201237979e9fb.tar.bz2 edk2-848e14723964231cc64dfe71342201237979e9fb.zip |
MdeModulePkg/MemoryStatusCode: Expose the DXE memory status code table.
Let data of DXE memory status code can be used by other modules.
1. Save the address of DXE memory status code table to DxeConfigurationTable.
2. Save the address of SMM memory status code table to SmmConfigurationTable.
3. Move RUNTIME_MEMORY_STATUSCODE_HEADER to its public header file.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Cinnamon Shia <cinnamon.shia@hpe.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdeModulePkg/Include')
-rw-r--r-- | MdeModulePkg/Include/Guid/MemoryStatusCodeRecord.h | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/MdeModulePkg/Include/Guid/MemoryStatusCodeRecord.h b/MdeModulePkg/Include/Guid/MemoryStatusCodeRecord.h index d6c3243094..27d39e185e 100644 --- a/MdeModulePkg/Include/Guid/MemoryStatusCodeRecord.h +++ b/MdeModulePkg/Include/Guid/MemoryStatusCodeRecord.h @@ -2,13 +2,14 @@ GUID used to identify status code records HOB that originate from the PEI status code.
Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
-This program and the accompanying materials are licensed and made available under
-the terms and conditions of the BSD License that accompanies this distribution.
+(C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
+This program and the accompanying materials are licensed and made available under
+the terms and conditions of the BSD License that accompanies this distribution.
The full text of the license may be found at
-http://opensource.org/licenses/bsd-license.php.
+http://opensource.org/licenses/bsd-license.php.
-THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
-WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
@@ -56,6 +57,25 @@ typedef struct { } MEMORY_STATUSCODE_PACKET_HEADER;
///
+/// A header structure that is followed by an array of records that contain the
+/// parameters passed into the ReportStatusCode() service in the DXE Services Table.
+///
+typedef struct {
+ ///
+ /// The index pointing to the last recored being stored.
+ ///
+ UINT32 RecordIndex;
+ ///
+ /// The number of records being stored.
+ ///
+ UINT32 NumberOfRecords;
+ ///
+ /// The maximum number of records that can be stored.
+ ///
+ UINT32 MaxRecordsNumber;
+} RUNTIME_MEMORY_STATUSCODE_HEADER;
+
+///
/// A structure that contains the parameters passed into the ReportStatusCode()
/// service in the PEI Services Table.
///
|