You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ext/opcache/jit/zend_jit_x86.dasc
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2910,6 +2910,15 @@ static int zend_jit_setup(void)
2910
2910
: "=a" (ti));
2911
2911
tsrm_tls_offset = ti[1];
2912
2912
tsrm_tls_index = ti[0] * 8;
2913
+
#elif defined(__FreeBSD__)
2914
+
size_t *ti;
2915
+
2916
+
__asm__(
2917
+
"leaq _tsrm_ls_cache@tlsgd(%%rip), %0\n"
2918
+
: "=a" (ti));
2919
+
tsrm_tls_offset = ti[1];
2920
+
/* Index is offset by 1 on FreeBSD (https://github.com/freebsd/freebsd-src/blob/bf56e8b9c8639ac4447d223b83cdc128107cc3cd/libexec/rtld-elf/rtld.c#L5260) */
0 commit comments