svn commit: r337758 - head/sys/x86/x86
Mark Johnston
markj at FreeBSD.org
Tue Aug 14 14:50:07 UTC 2018
Author: markj
Date: Tue Aug 14 14:50:06 2018
New Revision: 337758
URL: https://svnweb.freebsd.org/changeset/base/337758
Log:
Explain why we aren't using memcpy().
Reported by: jmg
X-MFC with: r337715
Sponsored by: The FreeBSD Foundation
Modified:
head/sys/x86/x86/ucode.c
Modified: head/sys/x86/x86/ucode.c
==============================================================================
--- head/sys/x86/x86/ucode.c Tue Aug 14 14:19:57 2018 (r337757)
+++ head/sys/x86/x86/ucode.c Tue Aug 14 14:50:06 2018 (r337758)
@@ -344,6 +344,7 @@ ucode_load_bsp(uintptr_t free)
match = loader->match(fileaddr, &len);
if (match != NULL) {
addr = map_ucode(free, len);
+ /* We can't use memcpy() before ifunc resolution. */
for (i = 0; i < len; i++)
addr[i] = match[i];
match = addr;
More information about the svn-src-head
mailing list