[BOOTLIB] Disable some x86 / x64 specific code for other architectures
authorMark Jansen <mark.jansen@reactos.org>
Sun, 18 Aug 2019 17:03:35 +0000 (19:03 +0200)
committerMark Jansen <mark.jansen@reactos.org>
Tue, 20 Aug 2019 20:28:11 +0000 (22:28 +0200)
boot/environ/lib/misc/util.c

index 20a0188..bd0a4b3 100644 (file)
@@ -943,6 +943,7 @@ BlArchGetCpuVendor (
 
     /* Get the CPU Vendor */
     BlArchCpuId(0, 0, &CpuInfo);
+#if defined(_M_IX86) || defined(_M_X64)
     Temp = CpuInfo.Ecx;
     CpuInfo.Ecx = CpuInfo.Edx;
     CpuInfo.Edx = Temp;
@@ -974,6 +975,9 @@ BlArchGetCpuVendor (
         return CPU_RISE;
     }
 #endif // _M_IX86
+#else // defined(_M_IX86) || defined(_M_X64)
+    EfiPrintf(L"BlArchGetCpuVendor not implemented for this platform.\r\n");
+#endif
     /* Other */
     return CPU_UNKNOWN;
 }