]> granicus.if.org Git - haveged/commitdiff
Remove support for CPUID on ia64
authorJérémy Bobbio <lunar@debian.org>
Fri, 6 Apr 2012 15:47:43 +0000 (17:47 +0200)
committerNicolas Braud-Santoni <nicolas@braud-santoni.eu>
Wed, 14 Aug 2019 14:21:38 +0000 (16:21 +0200)
Forwarded: by email to <gary@issiweb.com>, CC to <lunar@debian.org> on 2016-06-27

The current implementation simply fail to build and the 'cpuid' instruction on
Itanium spreads out value differently than what 'cpuid' does on i386 and amd64.
So the code needs to be worked out quite differently to work.

In the meantime, disabling CPUID support will make haveged use the default
cache values on ia64.

Gbp-Pq: Name 0001-Remove-support-for-CPUID-on-ia64.patch

src/havegecollect.h

index 1d3bef79286589eba60ef875fae35d742de481c8..6259862c9f6d0401fadc73733a43c9956e1f39a5 100644 (file)
@@ -117,11 +117,7 @@ typedef struct h_collect {
 
 #ifdef HAVE_ISA_IA64
 #define ARCH "ia64"
-#define CPUID(op,reg) ASM("mov %0=cpuid[%1]"\
-   : "=r" (value)\
-   : "r" (reg))
 #define HARDCLOCK(x) ASM("mov %0=ar.itc" : "=r"(x))
-#define HASCPUID(x) x=1
 #endif
 
 #ifdef HAVE_ISA_SPARC