svn commit: r337754 - head/sys/x86/x86

Ravi Pokala rpokala at freebsd.org
Tue Aug 14 15:38:54 UTC 2018


-----Original Message-----
From: <owner-src-committers at freebsd.org> on behalf of Andriy Gapon <avg at FreeBSD.org>
Date: 2018-08-14, Tuesday at 08:34
To: Mark Johnston <markj at freebsd.org>, <src-committers at freebsd.org>, <svn-src-all at freebsd.org>, <svn-src-head at freebsd.org>
Subject: Re: svn commit: r337754 - head/sys/x86/x86

> On 14/08/2018 17:02, Mark Johnston wrote:
>>   At some point memcpy() may be an ifunc, ifunc resolution cannot be done
>>   until CPU identification has been performed, and CPU identification must
>>   be done after loading any microcode updates.
> 
> Wouldn't it be cool if before an ifunc is resolved (to a proper
> optimized version) it pointed to a default implementation that is
> sufficiently naive and robust that it can work on all CPUs?
> But I don't know much about ifunc implementation, so no idea if it can
> work like that.

Or, if that can't be done, have a pre_ifunc_memcpy() with the default implementation, which is explicitly for use before ifuncs are set up.

-Ravi

> -- 
> Andriy Gapon




More information about the svn-src-head mailing list