Revert last change - don't expose lwp_getpcb() to userspace.

This commit is contained in:
dsl 2009-11-21 19:54:49 +00:00
parent a6f75e27d4
commit 04233a4c99
1 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: lwp.h,v 1.124 2009/11/21 18:53:08 rmind Exp $ */
/* $NetBSD: lwp.h,v 1.125 2009/11/21 19:54:49 dsl Exp $ */
/*-
* Copyright (c) 2001, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@ -197,13 +197,6 @@ struct lwp {
#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
@ -398,6 +391,13 @@ lwp_eprio(lwp_t *l)
return MAX(l->l_inheritedprio, pri);
}
static inline struct pcb *
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);