From a380a61605e799c1d2c63b47de59bdb5aef33fa8 Mon Sep 17 00:00:00 2001 From: Mark Jansen Date: Sun, 18 Aug 2019 19:03:35 +0200 Subject: [PATCH] [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; } -- 2.17.1