Package: nacl / 20110221-12

0005-fix-cpucycles-mips.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: =?utf-8?b?SmFuIE1vasW+w63FoQ==?= <jan.mojzis@gmail.com>
Date: Thu, 30 Dec 2021 07:53:49 +0100
Subject: fix cpucycles mips

Forwarded: no
---
 cpucycles/mips.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cpucycles/mips.c b/cpucycles/mips.c
index 8b75f82..b8967d5 100644
--- a/cpucycles/mips.c
+++ b/cpucycles/mips.c
@@ -18,7 +18,7 @@ static void readticks(unsigned int *result)
 {
   struct timeval t;
   unsigned int cc;
-  asm volatile(".byte 59; .byte 16; .byte 2; .byte 124; move %0,$2" : "=r"(cc) : : "$2");
+  asm volatile(".long 2080510011; move %0,$2" : "=r"(cc) : : "$2");
   gettimeofday(&t,(struct timezone *) 0);
   result[0] = cc;
   result[1] = t.tv_usec;