summaryrefslogtreecommitdiff
path: root/EdkModulePkg
diff options
context:
space:
mode:
Diffstat (limited to 'EdkModulePkg')
-rw-r--r--EdkModulePkg/Bus/Pci/Undi/RuntimeDxe/Decode.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/EdkModulePkg/Bus/Pci/Undi/RuntimeDxe/Decode.c b/EdkModulePkg/Bus/Pci/Undi/RuntimeDxe/Decode.c
index 02773d4e3d..e8de00b1e3 100644
--- a/EdkModulePkg/Bus/Pci/Undi/RuntimeDxe/Decode.c
+++ b/EdkModulePkg/Bus/Pci/Undi/RuntimeDxe/Decode.c
@@ -22,7 +22,12 @@ Revision history:
#include "undi32.h"
-#ifdef _MSC_EXTENSIONS
+//
+// #pragma data_seg("rtdata") is only recognized by MSFT C compiler.
+// But EBC compiler "Intel(R) C Compiler for EFI Byte Code, Version 1.2 Build 20040123"
+// does not recognize this pragma.
+//
+#if defined(_MSC_EXTENSIONS) && !defined(MDE_CPU_EBC)
#pragma data_seg("rtdata")
#endif
@@ -1650,6 +1655,11 @@ Returns:
PxePtr->Fudge = (UINT8) (PxePtr->Fudge - ChkSum ((VOID *) PxePtr, PxePtr->Len));
}
-#ifdef _MSC_EXTENSIONS
+//
+// #pragma data_seg("rtdata") is only recognized by MSFT C compiler.
+// But EBC compiler "Intel(R) C Compiler for EFI Byte Code, Version 1.2 Build 20040123"
+// does not recognize this pragma.
+//
+#if defined(_MSC_EXTENSIONS) && !defined(MDE_CPU_EBC)
#pragma data_seg()
#endif