This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Support multiarch for i686


On Fri, Jul 31, 2009 at 7:19 AM, Ulrich Drepper<drepper@redhat.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> H.J. Lu wrote:
>> Should it check __cpuid_count or provide __cpuid_count if not available?
>
> You'll have to provide a copy of that macro. ?Add a comment saying that
> if gcc 4.4 is the minimum requirement it can be removed.
>

Here is the updated patch.

Thanks.


-- 
H.J.
---
2009-07-31  H.J. Lu  <hongjiu.lu@intel.com>

	* sysdeps/i386/i686/Makefile (sysdep_routines): Add cacheinfo.

	* sysdeps/i386/i686/cacheinfo.c: New.
	* sysdeps/i386/i686/multiarch/Makefile: Likewise.
	* sysdeps/i386/i686/multiarch/ifunc-defines.sym: Likewise.
	* sysdeps/i386/i686/multiarch/init-arch.c: Likewise.
	* sysdeps/i386/i686/multiarch/init-arch.h: Likewise.
	* sysdeps/i386/i686/multiarch/sched_cpucount.c: Likewise.
	* sysdeps/unix/sysv/linux/i386/i686/sysconf.c: Likewise.

	* sysdeps/x86_64/cacheinfo.c: Include <cpuid.h>.
	(__cpuid_count): New. Provide the default.
	(__x86_64_prefetchw): Define only if DISABLE_PREFETCHW is not
	defined.
	(__x86_64_preferred_memory_instruction): Define only if
	DISABLE_PREFERRED_MEMORY_INSTRUCTION is not defined.
	(intel_check_word): Use __cpuid.
	(handle_intel): Likewise.
	(handle_amd): Likewise.
	(__cache_sysconf): Likewise.
	(init_cacheinfo): Updated.  Use __cpuid and __cpuid_count.

	* sysdeps/x86_64/multiarch/init-arch.c: Include <cpuid.h>.
	(get_common_indeces): Use __cpuid.
	(__init_cpu_features): Likewise.  Disable SSSE3 on Atom only
	if ENABLE_SSSE3_ON_ATOM is not defined.

	* sysdeps/x86_64/multiarch/init-arch.h (HAS_SSE2): New.

	* sysdeps/x86_64/multiarch/sched_cpucount.c (POPCNT): Use
	popcnt instead of popcntq.

Attachment: libc-ia32-2.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]