Skip to content

Commit

Permalink
Update build for Android arch armv7
Browse files Browse the repository at this point in the history
  • Loading branch information
junggyu-sc committed Aug 1, 2023
1 parent 4f51221 commit b3a15b2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down

0 comments on commit b3a15b2

Please sign in to comment.