Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys Export lwp_getpcb() to userland, since crash(8) need...
details: https://anonhg.NetBSD.org/src/rev/f979b750312e
branches: trunk
changeset: 749216:f979b750312e
user: rmind <rmind%NetBSD.org@localhost>
date: Sat Nov 21 18:53:08 2009 +0000
description:
Export lwp_getpcb() to userland, since crash(8) needs it.
diffstat:
sys/sys/lwp.h | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (37 lines):
diff -r 74fa67a8628b -r f979b750312e sys/sys/lwp.h
--- a/sys/sys/lwp.h Sat Nov 21 17:57:09 2009 +0000
+++ b/sys/sys/lwp.h Sat Nov 21 18:53:08 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lwp.h,v 1.123 2009/11/20 03:12:13 rmind Exp $ */
+/* $NetBSD: lwp.h,v 1.124 2009/11/21 18:53:08 rmind Exp $ */
/*-
* Copyright (c) 2001, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -197,6 +197,13 @@
#define UAREA_TO_USER(uarea) ((struct user *)((uarea) + UAREA_USER_OFFSET))
#endif /* !defined(UAREA_TO_USER) */
+static inline void *
+lwp_getpcb(lwp_t *l)
+{
+
+ return &l->l_addr->u_pcb;
+}
+
LIST_HEAD(lwplist, lwp); /* a list of LWPs */
#ifdef _KERNEL
@@ -391,13 +398,6 @@
return MAX(l->l_inheritedprio, pri);
}
-static inline void *
-lwp_getpcb(lwp_t *l)
-{
-
- return &l->l_addr->u_pcb;
-}
-
int lwp_create(lwp_t *, struct proc *, vaddr_t, int,
void *, size_t, void (*)(void *), void *, lwp_t **, int);
Home |
Main Index |
Thread Index |
Old Index