Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions ext/opcache/jit/tls/zend_jit_tls_aarch64.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ void *zend_jit_tsrm_ls_cache_address(
size_t module_index,
size_t module_offset
) {
#ifndef USE_FALLBACK
char *thread_pointer;
__asm__ __volatile__(
"mrs %0, tpidr_el0\n"
Expand All @@ -251,5 +252,6 @@ void *zend_jit_tsrm_ls_cache_address(
dtv_pointer_t *dtv = *(dtv_pointer_t**)((uintptr_t)thread_pointer + DTV_OFFSET);
return (void*)(((dtv_pointer_t*)((char*)dtv + module_index))->val + module_offset);
}
#endif
return NULL;
}
2 changes: 2 additions & 0 deletions ext/opcache/jit/tls/zend_jit_tls_x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ void *zend_jit_tsrm_ls_cache_address(
size_t module_index,
size_t module_offset
) {
#ifndef USE_FALLBACK
char *thread_pointer;
__asm__ __volatile__(
"movl %%gs:0, %0\n"
Expand All @@ -235,5 +236,6 @@ void *zend_jit_tsrm_ls_cache_address(
dtv_pointer_t *dtv = *(dtv_pointer_t**)((uintptr_t)thread_pointer + DTV_OFFSET);
return (void*)(((dtv_pointer_t*)((char*)dtv + module_index))->val + module_offset);
}
#endif
return NULL;
}
2 changes: 2 additions & 0 deletions ext/opcache/jit/tls/zend_jit_tls_x86_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ void *zend_jit_tsrm_ls_cache_address(
size_t module_index,
size_t module_offset
) {
#ifndef USE_FALLBACK
char *thread_pointer;
__asm__ __volatile__(
"movq %%fs:0, %0\n"
Expand All @@ -218,5 +219,6 @@ void *zend_jit_tsrm_ls_cache_address(
dtv_pointer_t *dtv = *(dtv_pointer_t**)((uintptr_t)thread_pointer + DTV_OFFSET);
return (void*)(((dtv_pointer_t*)((char*)dtv + module_index))->val + module_offset);
}
#endif
return NULL;
}