public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Michael D Kinney" <michael.d.kinney@intel.com>
To: devel@edk2.groups.io
Cc: Zailiang Sun <zailiang.sun@intel.com>,
	Yi Qian <yi.qian@intel.com>, Gary Lin <glin@suse.com>
Subject: [edk2-platforms Patch V3 12/12] Vlv2TbltDevicePkg/PlatformDxe: Use S3BootScriptWidth enums
Date: Mon, 22 Jul 2019 15:58:59 -0700	[thread overview]
Message-ID: <20190722225859.24724-13-michael.d.kinney@intel.com> (raw)
In-Reply-To: <20190722225859.24724-1-michael.d.kinney@intel.com>

Update to use S3BootScriptWidth enum values instead of
EfiBootScriptWidth enum values when calling S3BootScriptLib
services.  This fixes an XCODE5 build failure.

Cc: Zailiang Sun <zailiang.sun@intel.com>
Cc: Yi Qian <yi.qian@intel.com>
Cc: Gary Lin <glin@suse.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
---
 .../Intel/Vlv2TbltDevicePkg/PlatformDxe/Platform.c     | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/Platform/Intel/Vlv2TbltDevicePkg/PlatformDxe/Platform.c b/Platform/Intel/Vlv2TbltDevicePkg/PlatformDxe/Platform.c
index 0bc3f44c49..d9782aafba 100644
--- a/Platform/Intel/Vlv2TbltDevicePkg/PlatformDxe/Platform.c
+++ b/Platform/Intel/Vlv2TbltDevicePkg/PlatformDxe/Platform.c
@@ -968,25 +968,25 @@ PchInitBeforeBoot()
   // Saved SPI Opcode menu to fix EFI variable unable to write after S3 resume.
   //
   S3BootScriptSaveMemWrite (
-                         EfiBootScriptWidthUint32,
+                         S3BootScriptWidthUint32,
                          (UINTN)(SPI_BASE_ADDRESS + (R_PCH_SPI_OPMENU0)),
                          1,
                          (VOID *)(UINTN)(SPI_BASE_ADDRESS + (R_PCH_SPI_OPMENU0)));
 
   S3BootScriptSaveMemWrite (
-                         EfiBootScriptWidthUint32,
+                         S3BootScriptWidthUint32,
                          (UINTN)(SPI_BASE_ADDRESS + (R_PCH_SPI_OPMENU1)),
                          1,
                          (VOID *)(UINTN)(SPI_BASE_ADDRESS + (R_PCH_SPI_OPMENU1)));
 
   S3BootScriptSaveMemWrite (
-                         EfiBootScriptWidthUint16,
+                         S3BootScriptWidthUint16,
                          (UINTN)(SPI_BASE_ADDRESS + R_PCH_SPI_OPTYPE),
                          1,
                          (VOID *)(UINTN)(SPI_BASE_ADDRESS + R_PCH_SPI_OPTYPE));
 
   S3BootScriptSaveMemWrite (
-                         EfiBootScriptWidthUint16,
+                         S3BootScriptWidthUint16,
                          (UINTN)(SPI_BASE_ADDRESS + R_PCH_SPI_PREOP),
                          1,
                          (VOID *)(UINTN)(SPI_BASE_ADDRESS + R_PCH_SPI_PREOP));
@@ -995,7 +995,7 @@ PchInitBeforeBoot()
   // Saved MTPMC_1 for S3 resume.
   //
   S3BootScriptSaveMemWrite (
-                         EfiBootScriptWidthUint32,
+                         S3BootScriptWidthUint32,
                          (UINTN)(PMC_BASE_ADDRESS + R_PCH_PMC_MTPMC1),
                          1,
                          (VOID *)(UINTN)(PMC_BASE_ADDRESS + R_PCH_PMC_MTPMC1));
-- 
2.21.0.windows.1


  parent reply	other threads:[~2019-07-22 22:59 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-22 22:58 [edk2-platforms Patch V3 00/12] Vlv2Tbl2DevicePkg: Remove Linux/Windows differences Michael D Kinney
2019-07-22 22:58 ` [edk2-platforms Patch V3 01/12] Vlv2TbltDevicePkg/PlatformPei: Add boot mode detection Michael D Kinney
2019-07-23  1:29   ` Sun, Zailiang
2019-07-22 22:58 ` [edk2-platforms Patch V3 02/12] Vlv2TbltDevicePkg: Convert use of FCE tool to Structured PCD Michael D Kinney
2019-07-23  1:30   ` Sun, Zailiang
2019-07-22 22:58 ` [edk2-platforms Patch V3 03/12] Vlv2TbltDevicePkg: Remove Linux/GCC specific DSC/FDF files Michael D Kinney
2019-07-23  1:30   ` Sun, Zailiang
2019-07-23  8:28   ` Gary Lin
2019-07-22 22:58 ` [edk2-platforms Patch V3 04/12] Vlv2TbltDevicePkg: Convert BAT/sh Capsule scripts to Python Michael D Kinney
2019-07-23  1:30   ` [edk2-devel] " Sun, Zailiang
2019-07-23  8:43   ` Gary Lin
2019-07-22 22:58 ` [edk2-platforms Patch V3 05/12] Vlv2Tbl2DevicePkg: Convert BAT/sh Build " Michael D Kinney
2019-07-23  1:30   ` Sun, Zailiang
2019-07-23  8:27   ` Gary Lin
2019-07-22 22:58 ` [edk2-platforms Patch V3 06/12] Vlv2TbltDevicePkg: Remove non ASCII characters from source files Michael D Kinney
2019-07-23  1:31   ` Sun, Zailiang
2019-07-23  8:46   ` Gary Lin
2019-07-22 22:58 ` [edk2-platforms Patch V3 07/12] Vlv2Tbl2DevicePkg/EfiRegTableLib: Use S3_BOOT_SCRIPT_LIB_WIDTH Michael D Kinney
2019-07-23  1:31   ` Sun, Zailiang
2019-07-23  8:52   ` Gary Lin
2019-07-22 22:58 ` [edk2-platforms Patch V3 08/12] Vlv2TbltDevicePkg/PlatformDxe: Add missing #if Michael D Kinney
2019-07-23  1:31   ` Sun, Zailiang
2019-07-22 22:58 ` [edk2-platforms Patch V3 09/12] Vlv2TbltDevicePkg: Add XCODE5 4K alignment DLINK_FLAGS Michael D Kinney
2019-07-23  1:31   ` Sun, Zailiang
2019-07-22 22:58 ` [edk2-platforms Patch V3 10/12] Vlv2TbltDevicePkg: Fix XCODE5 build errors Michael D Kinney
2019-07-23  1:31   ` Sun, Zailiang
2019-07-22 22:58 ` [edk2-platforms Patch V3 11/12] Vlv2TbltDevicePkg: Remove __GNUC__ specific #ifdefs Michael D Kinney
2019-07-23  1:31   ` [edk2-devel] " Sun, Zailiang
2019-07-22 22:58 ` Michael D Kinney [this message]
2019-07-23  1:31   ` [edk2-platforms Patch V3 12/12] Vlv2TbltDevicePkg/PlatformDxe: Use S3BootScriptWidth enums Sun, Zailiang
2019-07-23  8:54   ` Gary Lin
2019-07-23  1:29 ` [edk2-platforms Patch V3 00/12] Vlv2Tbl2DevicePkg: Remove Linux/Windows differences Sun, Zailiang
2019-07-23  8:57 ` Gary Lin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190722225859.24724-13-michael.d.kinney@intel.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox