Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/sys document MD ways to access private data for som...
details: https://anonhg.NetBSD.org/src/rev/e6b53ced4d65
branches: trunk
changeset: 789745:e6b53ced4d65
user: yamt <yamt%NetBSD.org@localhost>
date: Fri Sep 06 17:54:09 2013 +0000
description:
document MD ways to access private data for some platforms
diffstat:
lib/libc/sys/_lwp_getprivate.2 | 24 ++++++++++++++++++++++--
1 files changed, 22 insertions(+), 2 deletions(-)
diffs (45 lines):
diff -r 9878a9c9b07f -r e6b53ced4d65 lib/libc/sys/_lwp_getprivate.2
--- a/lib/libc/sys/_lwp_getprivate.2 Fri Sep 06 17:43:19 2013 +0000
+++ b/lib/libc/sys/_lwp_getprivate.2 Fri Sep 06 17:54:09 2013 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: _lwp_getprivate.2,v 1.4 2008/04/30 13:10:51 martin Exp $
+.\" $NetBSD: _lwp_getprivate.2,v 1.5 2013/09/06 17:54:09 yamt Exp $
.\"
.\" Copyright (c) 2003 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd January 16, 2003
+.Dd September 7, 2013
.Dt _LWP_GETPRIVATE 2
.Os
.Sh NAME
@@ -50,6 +50,26 @@
.Pp
.Fn _lwp_getprivate
returns the pointer to private data for the LWP.
+.Pp
+Some platforms provide alternative ways quicker than
+.Fn _lwp_getprivate
+to use the pointer.
+.Bl -tag -width amd64
+.It alpha
+The pointer can be retrieved by call_pal PAL_rdunique.
+.It amd64
+The base address of
+.Dv %fs
+register is set to the pointer so that the private data can be
+accessed using the selector.
+.It i386
+The base address of
+.Dv %gs
+register is set to the pointer so that the private data can be
+accessed using the selector.
+.It sparc
+.Dv %g7
+register is set to the pointer.
.Sh ERRORS
The
.Fn _lwp_getprivate
Home |
Main Index |
Thread Index |
Old Index