Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164840718
D50564.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
481 B
Referenced Files
None
Subscribers
None
D50564.diff
View Options
diff --git a/lib/libc/riscv/static_tls.h b/lib/libc/riscv/static_tls.h
--- a/lib/libc/riscv/static_tls.h
+++ b/lib/libc/riscv/static_tls.h
@@ -31,12 +31,14 @@
#ifndef _LIBC_RISCV_STATIC_TLS_H
#define _LIBC_RISCV_STATIC_TLS_H
+#include <machine/tls.h>
+
static __inline uintptr_t
_libc_get_static_tls_base(size_t offset)
{
uintptr_t tlsbase;
- __asm __volatile("mv %0, tp" : "=r"(tlsbase));
+ tlsbase = (uintptr_t)_tcb_get();
tlsbase += offset;
return (tlsbase);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 5, 7:03 AM (3 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36010538
Default Alt Text
D50564.diff (481 B)
Attached To
Mode
D50564: libc/riscv: Fix initial exec TLS mode for dynamically loaded shared objects
Attached
Detach File
Event Timeline
Log In to Comment