projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9592728
)
[BOOTLIB] Disable some x86 / x64 specific code for other architectures
author
Mark Jansen
<mark.jansen@reactos.org>
Sun, 18 Aug 2019 17:03:35 +0000
(19:03 +0200)
committer
Mark Jansen
<mark.jansen@reactos.org>
Tue, 20 Aug 2019 20:28:11 +0000
(22:28 +0200)
boot/environ/lib/misc/util.c
patch
|
blob
|
history
diff --git
a/boot/environ/lib/misc/util.c
b/boot/environ/lib/misc/util.c
index
20a0188
..
bd0a4b3
100644
(file)
--- 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);
/* 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;
Temp = CpuInfo.Ecx;
CpuInfo.Ecx = CpuInfo.Edx;
CpuInfo.Edx = Temp;
@@
-974,6
+975,9
@@
BlArchGetCpuVendor (
return CPU_RISE;
}
#endif // _M_IX86
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;
}
/* Other */
return CPU_UNKNOWN;
}