diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-04-26 15:05:52 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-04-26 16:06:43 +0200 |
commit | 4c0c5fdb5f1b358d53edca10479d758557a8dbb1 (patch) | |
tree | 324fad2b1f49377a645975527cba230b79b02232 /rtemsbsd/src/rtems-bsd-thread.c | |
parent | Remove rusage dependencies (diff) | |
download | rtems-libbsd-4c0c5fdb5f1b358d53edca10479d758557a8dbb1.tar.bz2 |
Remove proc0 creation
Diffstat (limited to 'rtemsbsd/src/rtems-bsd-thread.c')
-rw-r--r-- | rtemsbsd/src/rtems-bsd-thread.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/rtemsbsd/src/rtems-bsd-thread.c b/rtemsbsd/src/rtems-bsd-thread.c index d1a3cafe..2ac502cf 100644 --- a/rtemsbsd/src/rtems-bsd-thread.c +++ b/rtemsbsd/src/rtems-bsd-thread.c @@ -31,10 +31,12 @@ RTEMS_CHAIN_DEFINE_EMPTY(rtems_bsd_thread_chain); +/* FIXME: What to do with the credentials? */ +static struct ucred FIXME_ucred; + static int rtems_bsd_thread_start(struct thread **td_ptr, void (*func)(void *), void *arg, int flags, int pages, const char *fmt, va_list ap) { - struct proc *p = &proc0;; struct thread *td = malloc(sizeof(struct thread), M_TEMP, M_WAITOK | M_ZERO); if (td != NULL) { @@ -86,9 +88,7 @@ rtems_bsd_thread_start(struct thread **td_ptr, void (*func)(void *), void *arg, td->td_id = id; vsnprintf(td->td_name, sizeof(td->td_name), fmt, ap); - bzero(&td->td_ru, sizeof(td->td_ru)); - td->td_ucred = crhold(p->p_ucred); - td->td_proc = p; + td->td_ucred = &FIXME_ucred; rtems_chain_append(&rtems_bsd_thread_chain, &td->td_node); |