]> git.proxmox.com Git - mirror_edk2.git/commitdiff
MdePkg: Change function parameter type
authorShenglei Zhang <shenglei.zhang@intel.com>
Fri, 25 Jan 2019 07:52:46 +0000 (15:52 +0800)
committerLiming Gao <liming.gao@intel.com>
Thu, 14 Feb 2019 07:38:44 +0000 (15:38 +0800)
Change type of parameter Opcode from UINT16 to UINTN
in EFI_S3_SAVE_STATE_WRITE and EFI_S3_SAVE_STATE_INSERT.
According to PI 1.6(Errata A), the type of Opcode in
EFI_S3_SAVE_STATE_WRITE and EFI_S3_SAVE_STATE_INSERT should
be UINTN not UINT16.
https://bugzilla.tianocore.org/show_bug.cgi?id=1517

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Shenglei Zhang <shenglei.zhang@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
MdePkg/Include/Protocol/S3SaveState.h

index 9e7b4050f60a36f45f455796e6caceeca198deb0..7de08ce84d1b117b4867bdfe40a5f00d59df58e0 100644 (file)
@@ -1,11 +1,11 @@
 /** @file\r
-  S3 Save State Protocol as defined in PI1.2 Specification VOLUME 5 Standard.\r
+  S3 Save State Protocol as defined in PI 1.6(Errata A) Specification VOLUME 5 Standard.\r
 \r
   This protocol is used by DXE PI module to store or record various IO operations\r
   to be replayed during an S3 resume.\r
   This protocol is not required for all platforms.\r
 \r
-  Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2019, 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
@@ -52,7 +52,7 @@ typedef
 EFI_STATUS\r
 (EFIAPI *EFI_S3_SAVE_STATE_WRITE)(\r
    IN CONST EFI_S3_SAVE_STATE_PROTOCOL  *This,\r
-   IN       UINT16                      OpCode,\r
+   IN       UINT                      OpCode,\r
    ...\r
 );\r
 \r
@@ -98,7 +98,7 @@ EFI_STATUS
    IN CONST EFI_S3_SAVE_STATE_PROTOCOL  *This,\r
    IN       BOOLEAN                     BeforeOrAfter,\r
    IN OUT   EFI_S3_BOOT_SCRIPT_POSITION *Position       OPTIONAL,\r
-   IN       UINT16                      OpCode,\r
+   IN       UINT                      OpCode,\r
    ...\r
 );\r
 \r