git: 461afb106107 - main - cpu_machdep.9: update documentation for cpu_set_user_tls()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 31 May 2025 14:55:58 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=461afb106107f38b4af23f42f5f99470ceef0877
commit 461afb106107f38b4af23f42f5f99470ceef0877
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-05-30 18:28:22 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-05-31 14:55:24 +0000
cpu_machdep.9: update documentation for cpu_set_user_tls()
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
---
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 30ac5ea36642..415d86a8b766 100644
--- a/share/man/man9/cpu_machdep.9
+++ b/share/man/man9/cpu_machdep.9
@@ -70,7 +70,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
@@ -185,6 +185,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_update_pcb
updates the pcb of the current thread with current user register values.