Skip to content

Commit

Permalink
Use tpidrro_el0 on Aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
xhochy committed Dec 30, 2020
1 parent 2ab0bb3 commit f03e1ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/mimalloc-internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ static inline void* mi_tls_slot(size_t slot) mi_attr_noexcept {
res = tcb[slot];
#elif defined(__aarch64__)
void** tcb; UNUSED(ofs);
__asm__ volatile ("mrs %0, tpidr_el0" : "=r" (tcb));
__asm__ volatile ("mrs %0, tpidrro_el0" : "=r" (tcb));
res = tcb[slot];
#endif
return res;
Expand All @@ -730,7 +730,7 @@ static inline void mi_tls_slot_set(size_t slot, void* value) mi_attr_noexcept {
tcb[slot] = value;
#elif defined(__aarch64__)
void** tcb; UNUSED(ofs);
__asm__ volatile ("mrs %0, tpidr_el0" : "=r" (tcb));
__asm__ volatile ("mrs %0, tpidrro_el0" : "=r" (tcb));
tcb[slot] = value;
#endif
}
Expand Down

0 comments on commit f03e1ba

Please sign in to comment.