Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151507894
D30508.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
838 B
Referenced Files
None
Subscribers
None
D30508.id.diff
View Options
diff --git a/sys/arm64/linux/linux_machdep.c b/sys/arm64/linux/linux_machdep.c
--- a/sys/arm64/linux/linux_machdep.c
+++ b/sys/arm64/linux/linux_machdep.c
@@ -55,7 +55,6 @@
LIN_SDT_PROBE_DEFINE0(machdep, linux_mmap2, todo);
LIN_SDT_PROBE_DEFINE0(machdep, linux_rt_sigsuspend, todo);
LIN_SDT_PROBE_DEFINE0(machdep, linux_sigaltstack, todo);
-LIN_SDT_PROBE_DEFINE0(machdep, linux_set_cloned_tls, todo);
/*
* LINUXTODO: deduplicate; linux_execve is common across archs, except that on
@@ -141,11 +140,12 @@
return (EDOOFUS);
}
-/* LINUXTODO: implement arm64 linux_set_cloned_tls */
int
linux_set_cloned_tls(struct thread *td, void *desc)
{
- LIN_SDT_PROBE0(machdep, linux_set_cloned_tls, todo);
- return (EDOOFUS);
+ if ((uint64_t)desc >= VM_MAXUSER_ADDRESS)
+ return (EPERM);
+
+ return (cpu_set_user_tls(td, desc));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 9, 9:59 PM (4 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31139873
Default Alt Text
D30508.id.diff (838 B)
Attached To
Mode
D30508: linux: implement set_cloned_tls() on arm64
Attached
Detach File
Event Timeline
Log In to Comment