]> xenbits.xensource.com Git - people/andrewcoop/hwloc.git/commit
Fix cpuid on windows 64bits so that the x86 backend is enabled as expected
authorBrice Goglin <Brice.Goglin@inria.fr>
Tue, 28 Jan 2014 14:41:57 +0000 (15:41 +0100)
committerBrice Goglin <Brice.Goglin@inria.fr>
Wed, 29 Jan 2014 09:16:45 +0000 (10:16 +0100)
commit23be199cf9ec1f16adbf475447eb8473916a27e6
tree865c981fb81cd588da196cd60bed553903ab053a
parentf0add98422f44eac5e8bf0ff6aa2075cbf507f0d
Fix cpuid on windows 64bits so that the x86 backend is enabled as expected

unsigned long isn't 64bits on win64, so the cpuid assembly code fails to
build during configure (%ebx and %rbx gets mixed in the assembly),
and the entire x86 backend gets disabled.

Use hwloc_uint64_t instead. It needs hwloc/autogen/config.h which isn't
ready during configure yet, so manually add #include/#define during
the cpuid check.

Thanks to Robin Scher for reporting the problem.
config/hwloc.m4
include/private/cpuid.h