From nobody Sat May 31 14:55:58 2025 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4b8jpn1VSPz5x8BV; Sat, 31 May 2025 14:56:01 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4b8jpm0Cffz3P8s; Sat, 31 May 2025 14:55:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1748703360; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=V1NVuKhYgn/2Qo2hUmfutkm0vwiUcAl2roDW2UoOAq4=; b=Y4d/ATv9xPQBIm7EW2N3+jR6886y4a+iNTApHjxeBBZ5ZAI4KOnD9w1RyPEMe74nBJankL AJcn7ZHn9dlx80lgp1NMM0IZYQlcZ4Nuq0GQeaUhNhPtkE03C0DirCOCiEIFFZrHqcSR1A zbffYaYJxiA0DfqCGvq93waSm9Eq+cvoSNpePG4z6SBWqlgINEm2qBgU7UvQ+skee8qdEn tiBiupuHjfc0yh2KJ5Lq0Z9OM6fueBjQzpDW92tJS048tagQdfeF1wMAeN6SGfi8KRnJZ7 eXn7gd9AchPVvjElvMH6hFFIKOCIxwFFYR+i5nNFq6P8i1Acr5I0d7q52Jd54g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1748703360; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=V1NVuKhYgn/2Qo2hUmfutkm0vwiUcAl2roDW2UoOAq4=; b=SeWWxziVsc/rf9tx40zxIJ1Ui4MS6TdTUVggHjksE3L5jRg19L46NgOMPZgcHowDSsmBqb iBCTxIU9GoZSS6QlOLewDyDND+6RKURf/1Sk1JDdaeNu2cpkKDUVRmuoy4VsAGgjslZ/e9 uUpyQ5E2cyvtobMla2O2K+xqNBPHf37caXsl2yJo+1m0jCSv3uHxhTsZBNZBiCD2JyN3cx iHX+dce5J0f6vz2vXV6O47ny4BE7NQKhOx+N6YDDxV9YntSJkDXdqOusAemz0ESLnF0QWh bXWunGDqBDh81xrLLGcFvqepC1XPVpiKSiSe5cwEXAAAhXrgyqZkWWx4CZ66qg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1748703360; a=rsa-sha256; cv=none; b=cg2iT8pX0LZaZ1ageo+M6s43a+UmEo+b+kkEhE/o50/zd+syHGiSar79awjMQIyWoJ8Kbj 0zvNL/TPRMnuJFmTgHhFdlOLR7XZFslYTr/35OslzoiOM+agA+iGR1xtIGrSlJipE56G8B hR/Ao/z32W7jr83hQSHxDw2sdySJ9ZRCxRK+hos3UkD5R5M5npuUuq4rgVEYrU/FIL9a/E B/lbVfjR7Wh9uba5Ypx+sp1wfv4RwLe79G7N0TphThwmnoDpcEJNgCte+JBAjVfJOLAYOL bMj/WMm3aHygrUzAObr3ZVMRZQqekdYcZPFO8Lpq1AFrgWnnFsz6fa2PhobirQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4b8jpl0lm9zjqc; Sat, 31 May 2025 14:55:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 54VEtwhD067194; Sat, 31 May 2025 14:55:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 54VEtw9w067191; Sat, 31 May 2025 14:55:58 GMT (envelope-from git) Date: Sat, 31 May 2025 14:55:58 GMT Message-Id: <202505311455.54VEtw9w067191@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 461afb106107 - main - cpu_machdep.9: update documentation for cpu_set_user_tls() List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 461afb106107f38b4af23f42f5f99470ceef0877 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=461afb106107f38b4af23f42f5f99470ceef0877 commit 461afb106107f38b4af23f42f5f99470ceef0877 Author: Konstantin Belousov AuthorDate: 2025-05-30 18:28:22 +0000 Commit: Konstantin Belousov 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.