mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-09 11:55:57 +00:00
51bc1cf87f
* dist: precompiled binaries and Docker images The builds are reproducible, the binaries are portable and statically link librocksdb. This took some patching. Upstream PR: https://github.com/facebook/rocksdb/pull/9752 32-bit ARM is missing as a target because two different GCC versions fail with an ICE when trying to cross-compile RocksDB. Using Clang instead is too much trouble for a platform that nobody should be using anyway. (Clang doesn't come with its own target headers and libraries, can't be easily convinced to use the ones from GCC, so it needs an fs image from a 32-bit ARM distro - at which point I stopped caring). * CI: disable reproducibility test
16 lines
786 B
Diff
16 lines
786 B
Diff
diff --git a/utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h b/utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h
|
|
index 225e3fa72..cd5f935f1 100644
|
|
--- a/utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h
|
|
+++ b/utilities/transactions/lock/range/range_tree/lib/portability/toku_time.h
|
|
@@ -131,6 +131,10 @@ static inline tokutime_t toku_time_now(void) {
|
|
uint64_t result;
|
|
__asm __volatile__("mrs %[rt], cntvct_el0" : [ rt ] "=r"(result));
|
|
return result;
|
|
+#elif defined(__arm__)
|
|
+ uint32_t lo, hi;
|
|
+ __asm __volatile__("mrrc p15, 1, %[lo], %[hi], c14" : [ lo ] "=r" (lo), [hi] "=r" (hi));
|
|
+ return (uint64_t)hi << 32 | lo;
|
|
#elif defined(__powerpc__)
|
|
return __ppc_get_timebase();
|
|
#elif defined(__s390x__)
|