https://git.reactos.org/?p=reactos.git;a=commitdiff;h=a380a61605e799c1d2c63b47de59bdb5aef33fa8

commit a380a61605e799c1d2c63b47de59bdb5aef33fa8
Author:     Mark Jansen <mark.jan...@reactos.org>
AuthorDate: Sun Aug 18 19:03:35 2019 +0200
Commit:     Mark Jansen <mark.jan...@reactos.org>
CommitDate: Tue Aug 20 22:28:11 2019 +0200

    [BOOTLIB] Disable some x86 / x64 specific code for other architectures
---
 boot/environ/lib/misc/util.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/boot/environ/lib/misc/util.c b/boot/environ/lib/misc/util.c
index 20a01881dc2..bd0a4b3da57 100644
--- a/boot/environ/lib/misc/util.c
+++ b/boot/environ/lib/misc/util.c
@@ -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;
 }

Reply via email to