The branch stable/14 has been updated by kib:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=94285af19eaef053de3b6d77d2a4f30c6a07618c

commit 94285af19eaef053de3b6d77d2a4f30c6a07618c
Author:     Konstantin Belousov <k...@freebsd.org>
AuthorDate: 2025-05-30 18:28:22 +0000
Commit:     Konstantin Belousov <k...@freebsd.org>
CommitDate: 2025-06-12 18:02:51 +0000

    cpu_machdep.9: update documentation for cpu_set_user_tls()
    
    (cherry picked from commit 461afb106107f38b4af23f42f5f99470ceef0877)
---
 share/man/man9/cpu_machdep.9 | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/share/man/man9/cpu_machdep.9 b/share/man/man9/cpu_machdep.9
index 9ab42807eac1..5fcd7b26875b 100644
--- a/share/man/man9/cpu_machdep.9
+++ b/share/man/man9/cpu_machdep.9
@@ -69,7 +69,7 @@
 .Fa "struct thread *td" "void (*entry)(void *)" "void *arg" "stack_t *stack"
 .Fc
 .Ft int
-.Fn cpu_set_user_tls "struct thread *td" "void *tls_base"
+.Fn cpu_set_user_tls "struct thread *td" "void *tls_base" "int thr_flags"
 .Ft void
 .Fn cpu_switch "struct thread *old" "struct thread *new" "struct mtx *mtx"
 .Ft void
@@ -182,6 +182,15 @@ as the sole argument using the user stack described in
 sets a new thread's initial user thread pointer register to
 reference the user TLS base pointer
 .Fa tls_base .
+The
+.Fa thr_flags
+argument provides flags bits, from the same namespace as
+.Va flags
+member of the
+.Vt struct thr_param
+argument to the
+.Xr thr_new 2
+syscall.
 .Pp
 .Fn cpu_fetch_syscall_args
 fetches the current system call arguments for the native FreeBSD ABI from the

Reply via email to