From: "Siyuan, Fu" <siyuan.fu@intel.com>
To: devel@edk2.groups.io
Cc: Ray Ni <ray.ni@intel.com>,
Rangasai V Chaganty <rangasai.v.chaganty@intel.com>,
Liming Gao <liming.gao@intel.com>
Subject: [Patch] IntelSiliconPkg/ShadowMicrocodePei: Fix GCC build error.
Date: Thu, 27 Feb 2020 09:58:26 +0800 [thread overview]
Message-ID: <20200227015826.67948-1-siyuan.fu@intel.com> (raw)
This patch fixes compiler error introduced by commit
b0099a39bd.
BZ: https://tianocore.acgmultimedia.com/show_bug.cgi?id=2449
Cc: Ray Ni <ray.ni@intel.com>
Cc: Rangasai V Chaganty <rangasai.v.chaganty@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Signed-off-by: Siyuan Fu <siyuan.fu@intel.com>
---
.../Feature/ShadowMicrocode/ShadowMicrocodePei.c | 2 +-
.../Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Silicon/Intel/IntelSiliconPkg/Feature/ShadowMicrocode/ShadowMicrocodePei.c b/Silicon/Intel/IntelSiliconPkg/Feature/ShadowMicrocode/ShadowMicrocodePei.c
index 7e4084247e..8d6574f667 100644
--- a/Silicon/Intel/IntelSiliconPkg/Feature/ShadowMicrocode/ShadowMicrocodePei.c
+++ b/Silicon/Intel/IntelSiliconPkg/Feature/ShadowMicrocode/ShadowMicrocodePei.c
@@ -247,7 +247,7 @@ ShadowMicrocodePatchWorker (
(VOID *) Patches[Index].Address,
Patches[Index].Size
);
- MicrocodeAddressInMemory[Index] = (UINT64) Walker;
+ MicrocodeAddressInMemory[Index] = (UINT64) (UINTN) Walker;
Flashcontext->MicrocodeAddressInFlash[Index] = (UINT64) Patches[Index].Address;
Walker += Patches[Index].Size;
}
diff --git a/Silicon/Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h b/Silicon/Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h
index d887b39123..1daae1234a 100644
--- a/Silicon/Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h
+++ b/Silicon/Intel/IntelSiliconPkg/Include/Guid/MicrocodeShadowInfoHob.h
@@ -58,7 +58,7 @@ typedef struct {
// microcode patch address on flash. The address is placed in same
// order as the microcode patches in MicrocodeAddrInMemory.
//
- UINT64 MicrocodeAddressInFlash[];
+ UINT64 MicrocodeAddressInFlash[0];
} EFI_MICROCODE_STORAGE_TYPE_FLASH_CONTEXT;
#endif
--
2.19.1.windows.1
next reply other threads:[~2020-02-27 1:58 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-27 1:58 Siyuan, Fu [this message]
2020-02-27 2:05 ` [Patch] IntelSiliconPkg/ShadowMicrocodePei: Fix GCC build error Liming Gao
2020-02-27 4:22 ` Ni, Ray
2020-02-27 5:25 ` [edk2-devel] " Michael D Kinney
2020-02-27 5:38 ` Liming Gao
2020-02-27 5:53 ` Michael D Kinney
2020-02-27 5:58 ` Liming Gao
2020-02-27 6:03 ` Michael D Kinney
2020-02-27 6:52 ` Liming Gao
2020-02-27 15:42 ` Andrew Fish
2020-03-01 23:41 ` Michael D Kinney
2020-03-02 3:47 ` Andrew Fish
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=20200227015826.67948-1-siyuan.fu@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