summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MdeModulePkg/Core/Pei/Image/Image.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/MdeModulePkg/Core/Pei/Image/Image.c b/MdeModulePkg/Core/Pei/Image/Image.c
index 75dd9b2a97..5b2a6d0a72 100644
--- a/MdeModulePkg/Core/Pei/Image/Image.c
+++ b/MdeModulePkg/Core/Pei/Image/Image.c
@@ -82,9 +82,9 @@ PeiImageReadForShadow (
OUT VOID *Buffer
)
{
- CHAR8 *Destination8;
- CHAR8 *Source8;
- UINTN Length;
+ volatile CHAR8 *Destination8;
+ CHAR8 *Source8;
+ UINTN Length;
Destination8 = Buffer;
Source8 = (CHAR8 *) ((UINTN) FileHandle + FileOffset);