]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Update IFR version opcode value to follow the UEFI2.3.1 Spec.
authorlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 19 Apr 2011 06:32:27 +0000 (06:32 +0000)
committerlgao4 <lgao4@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 19 Apr 2011 06:32:27 +0000 (06:32 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11559 6f19259b-4bc3-4df7-8a09-765794883524

MdeModulePkg/Universal/SetupBrowserDxe/Setup.h

index 928b929f0b4cacf41920a39b57f57f4e6bd11f1e..f000c7b7674c130ff6f52a6c664961c6418a8146 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
 Private MACRO, structure and function definitions for Setup Browser module.\r
 \r
-Copyright (c) 2007 - 2010, Intel Corporation. All rights reserved.<BR>\r
+Copyright (c) 2007 - 2011, Intel Corporation. All rights reserved.<BR>\r
 This program and the accompanying materials\r
 are licensed and made available under the terms and conditions of the BSD License\r
 which accompanies this distribution.  The full text of the license may be found at\r
@@ -152,10 +152,7 @@ typedef struct {
 //\r
 #define EXPRESSION_STACK_SIZE_INCREMENT    0x100\r
 \r
-#define EFI_SPECIFICATION_MAJOR_VERSION    0x2\r
-#define EFI_SPECIFICATION_MINOR_VERSION    0x1\r
-#define EFI_SPECIFICATION_ERRATA_VERSION   0x0\r
-#define EFI_IFR_SPECIFICATION_VERSION  (UINT16)((EFI_SPECIFICATION_MAJOR_VERSION << 8) | (EFI_SPECIFICATION_MINOR_VERSION << 4) | EFI_SPECIFICATION_ERRATA_VERSION)\r
+#define EFI_IFR_SPECIFICATION_VERSION  (UINT16) (((EFI_SYSTEM_TABLE_REVISION >> 16) << 8) | (((EFI_SYSTEM_TABLE_REVISION & 0xFFFF) / 10) << 4) | ((EFI_SYSTEM_TABLE_REVISION & 0xFFFF) % 10))\r
 \r
 \r
 #define SETUP_DRIVER_SIGNATURE SIGNATURE_32 ('F', 'B', 'D', 'V')\r