[edk2-devel] [PATCH 5/6] MdePkg: Update SmBios.h to fix PROCESSOR_CHARACTERISTIC_FLAGS

Rebecca Cran posted 6 patches 5 years, 3 months ago
There is a newer version of this series
[edk2-devel] [PATCH 5/6] MdePkg: Update SmBios.h to fix PROCESSOR_CHARACTERISTIC_FLAGS
Posted by Rebecca Cran 5 years, 3 months ago
The ProcessorCharacteristics field is a UINT16, so the
PROCESSOR_CHARACTERISTIC_FLAGS bitfield should be too.

Signed-off-by: Rebecca Cran <rebecca@nuviainc.com>
---
 MdePkg/Include/IndustryStandard/SmBios.h | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/MdePkg/Include/IndustryStandard/SmBios.h b/MdePkg/Include/IndustryStandard/SmBios.h
index 1981e551187b..400bdef90b4f 100644
--- a/MdePkg/Include/IndustryStandard/SmBios.h
+++ b/MdePkg/Include/IndustryStandard/SmBios.h
@@ -862,17 +862,17 @@ typedef struct {
 } PROCESSOR_FEATURE_FLAGS;
 
 typedef struct {
-  UINT32  ProcessorReserved1              :1;
-  UINT32  ProcessorUnknown                :1;
-  UINT32  Processor64BitCapable           :1;
-  UINT32  ProcessorMultiCore              :1;
-  UINT32  ProcessorHardwareThread         :1;
-  UINT32  ProcessorExecuteProtection      :1;
-  UINT32  ProcessorEnhancedVirtualization :1;
-  UINT32  ProcessorPowerPerformanceCtrl   :1;
-  UINT32  Processor128BitCapable          :1;
-  UINT32  ProcessorArm64SocId             :1;
-  UINT32  ProcessorReserved2              :6;
+  UINT16  ProcessorReserved1              :1;
+  UINT16  ProcessorUnknown                :1;
+  UINT16  Processor64BitCapable           :1;
+  UINT16  ProcessorMultiCore              :1;
+  UINT16  ProcessorHardwareThread         :1;
+  UINT16  ProcessorExecuteProtection      :1;
+  UINT16  ProcessorEnhancedVirtualization :1;
+  UINT16  ProcessorPowerPerformanceCtrl   :1;
+  UINT16  Processor128BitCapable          :1;
+  UINT16  ProcessorArm64SocId             :1;
+  UINT16  ProcessorReserved2              :6;
 } PROCESSOR_CHARACTERISTIC_FLAGS;
 
 typedef struct {
-- 
2.26.2



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#66509): https://edk2.groups.io/g/devel/message/66509
Mute This Topic: https://groups.io/mt/77711816/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-