[haveged/f15] update s390 patch - convert the returned value to unsigned int

Dan Horák sharkcz at fedoraproject.org
Sat Nov 26 15:58:00 UTC 2011


commit 647b55a31c04721b7d69723de71484f95f0fff8a
Author: Dan Horák <dan at danny.cz>
Date:   Sat Nov 26 10:52:18 2011 +0100

    update s390 patch - convert the returned value to unsigned int

 haveged-1.3_s390.patch |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/haveged-1.3_s390.patch b/haveged-1.3_s390.patch
index 4e998a9..86bc27a 100644
--- a/haveged-1.3_s390.patch
+++ b/haveged-1.3_s390.patch
@@ -35,7 +35,7 @@ diff -up haveged-1.3/src/havegecollect.h.s390 haveged-1.3/src/havegecollect.h
  
 +#ifdef HAVE_ISA_S390
 +#define ARCH "s390"
-+#define HARDCLOCK(x) ASM("stck %0":"=Q"(x))
++#define HARDCLOCK(x) { unsigned long long tsc; ASM("stck %0":"=Q"(tsc)); x = (unsigned int)tsc; }
 +#endif
 +
  #ifdef HAVE_ISA_IA64


More information about the scm-commits mailing list