audk/MdeModulePkg/Universal/Acpi
Ruiyu Ni 0a274516ff MdeModulePkg/S3SaveState: Extract arguments in correct order
EFI_BOOT_SCRIPT_WRITE() interface is a var-arg interface.

Spec defines the order of parameters for
EFI_BOOT_SCRIPT_PCI_CONFIG2_WRITE_OPCODE as below:

  typedef
  EFI_STATUS
  (EFIAPI *EFI_BOOT_SCRIPT_WRITE) (
    IN CONST EFI_S3_SAVE_STATE_PROTOCOL *This,
    IN UINT16 OpCode,
    IN EFI_BOOT_SCRIPT_WIDTH Width,
    IN UINT16 Segment,
    IN UINT64 Address,
    IN UINTN Count,
    IN VOID *Buffer
  );

But implementation assumes Segment is in the very end, after Buffer.
Similar spec/implementation gaps are also found for
EFI_BOOT_SCRIPT_PCI_CONFIG2_READ_WRITE_OPCODE.

The patch fixes the implementation to extract the arguments in
correct order.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com>
Reviewed-by: Star Zeng <star.zeng@intel.com>
2017-10-10 13:23:10 +08:00
..
AcpiPlatformDxe MdeModulePkg: Convert all .uni files to utf-8 2015-12-15 04:56:23 +00:00
AcpiTableDxe MdeModulePkg/AcpiTableDxe: consider version mask when removing tables 2017-03-21 07:07:01 +00:00
BootGraphicsResourceTableDxe MdeModulePkg/BootGraphicsResourceTableDxe: don't allocate below 4 GB 2017-03-21 07:10:39 +00:00
BootScriptExecutorDxe MdeModulePkg: Error Level is not used correctly 2017-04-12 08:56:12 +08:00
FirmwarePerformanceDataTableDxe MdeModulePkg/FirmwarePerformanceDxe: Error Level is not used correctly 2017-04-21 10:46:49 +08:00
FirmwarePerformanceDataTablePei MdeModulePkg FirmwarePerfPei: Remove SEC performance data getting code 2017-08-01 17:49:22 +08:00
FirmwarePerformanceDataTableSmm MdeModulePkg-FPDT(2): Add SMM_FPDT_FUNCTION_GET_BOOT_RECORD_DATA_BY_OFFSET in FpdtSmm Handler. 2016-04-29 12:49:18 +08:00
S3SaveStateDxe MdeModulePkg/S3SaveState: Extract arguments in correct order 2017-10-10 13:23:10 +08:00
SmmS3SaveState MdeModulePkg/S3SaveState: Extract arguments in correct order 2017-10-10 13:23:10 +08:00