Replace cpuid asm statement with __cpuid_count
commitb4acef1ffe2e1ba6c608f31c1954a8100d3eabb0
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 13 Aug 2014 00:02:51 +0000 (12 17:02 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 13 Aug 2014 00:02:51 +0000 (12 17:02 -0700)
treea93ac67799d6e5086b0c60296690bf9316d10776
parent61b1ef6e7cc4518cdadb808dfa78980cc15a63c3
Replace cpuid asm statement with __cpuid_count

The compiler doesn't know that the cpuid asm statement in intel_check_word
will trash RBX.  We are lucky that it doesn't cause any problems since
RBX is also used by compiler for other purposes so that RBX is saved and
restored.  This patch replaces it with __cpuid_count.

[BZ #17259]
* sysdeps/x86_64/cacheinfo.c (intel_check_word): Replace cpuid
asm statement with __cpuid_count.
ChangeLog
NEWS
sysdeps/x86_64/cacheinfo.c