From 27f4c235eeab665cf6de59764ebc398af5cb66bd Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Tue, 14 Aug 2018 14:50:06 +0000 Subject: [PATCH] Explain why we aren't using memcpy(). Reported by: jmg X-MFC with: r337715 Sponsored by: The FreeBSD Foundation --- sys/x86/x86/ucode.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/x86/x86/ucode.c b/sys/x86/x86/ucode.c index 319debe9261f..ec1d51c625e4 100644 --- a/sys/x86/x86/ucode.c +++ b/sys/x86/x86/ucode.c @@ -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;