Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111636340
D30508.id90006.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
861 B
Referenced Files
None
Subscribers
None
D30508.id90006.diff
View Options
Index: sys/arm64/linux/linux_machdep.c
===================================================================
--- sys/arm64/linux/linux_machdep.c
+++ sys/arm64/linux/linux_machdep.c
@@ -56,7 +56,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
@@ -136,11 +135,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
Fri, Mar 7, 8:18 AM (19 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17028260
Default Alt Text
D30508.id90006.diff (861 B)
Attached To
Mode
D30508: linux: implement set_cloned_tls() on arm64
Attached
Detach File
Event Timeline
Log In to Comment