diff options
author | Rebecca Cran <rebecca@nuviainc.com> | 2021-03-30 20:16:17 -0600 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-04-27 12:46:26 +0000 |
commit | bbeb1bea4166c577499a26b5097bab4d69829d94 (patch) | |
tree | 95b937482944e1d3267ce7fb361f7d73c8f78259 /ArmPkg/Universal/Smbios/SmbiosMiscDxe | |
parent | bf2b99990e1b0a0eed09d6e5b22b293b9dfa978f (diff) | |
download | edk2-bbeb1bea4166c577499a26b5097bab4d69829d94.zip edk2-bbeb1bea4166c577499a26b5097bab4d69829d94.tar.gz edk2-bbeb1bea4166c577499a26b5097bab4d69829d94.tar.bz2 |
ArmPkg: Allow platforms to report their boot status via OemMiscLib call
Add a new function to OemMiscLib to allow platforms to report their boot
status into the Type32 SMBIOS table.
Signed-off-by: Rebecca Cran <rebecca@nuviainc.com>
Reviewed-by: Leif Lindholm <leif@nuviainc.com>
Diffstat (limited to 'ArmPkg/Universal/Smbios/SmbiosMiscDxe')
-rw-r--r-- | ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type32/MiscBootInformationFunction.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type32/MiscBootInformationFunction.c b/ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type32/MiscBootInformationFunction.c index 733615b..4be1e1c 100644 --- a/ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type32/MiscBootInformationFunction.c +++ b/ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type32/MiscBootInformationFunction.c @@ -16,6 +16,7 @@ #include <Library/BaseMemoryLib.h>
#include <Library/DebugLib.h>
#include <Library/MemoryAllocationLib.h>
+#include <Library/OemMiscLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include "SmbiosMisc.h"
@@ -59,6 +60,8 @@ SMBIOS_MISC_TABLE_FUNCTION(MiscBootInformation) SmbiosRecord->Hdr.Length = sizeof (SMBIOS_TABLE_TYPE32);
+ SmbiosRecord->BootStatus = OemGetBootStatus ();
+
//
// Now we have got the full smbios record, call smbios protocol to add this record.
//
|