diff options
| author | Mike Makonnen <mtm@FreeBSD.org> | 2003-05-21 03:22:36 +0000 |
|---|---|---|
| committer | Mike Makonnen <mtm@FreeBSD.org> | 2003-05-21 03:22:36 +0000 |
| commit | 3f07b4bcbd9487f07b244731504e00e238da94d2 (patch) | |
| tree | b8e27a0850e800cbb714afa977b8ab19511f3469 /lib/libthr/thread/thr_init.c | |
| parent | 742d91f2117c2a36891a0a37b1395bca95cac153 (diff) | |
Notes
Diffstat (limited to 'lib/libthr/thread/thr_init.c')
| -rw-r--r-- | lib/libthr/thread/thr_init.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libthr/thread/thr_init.c b/lib/libthr/thread/thr_init.c index 1a0c648553e1..64a1315a65b5 100644 --- a/lib/libthr/thread/thr_init.c +++ b/lib/libthr/thread/thr_init.c @@ -218,11 +218,12 @@ _thread_init(void) */ PANIC("Cannot allocate memory for initial thread"); } + /* Zero the initial thread structure: */ + memset(pthread, 0, sizeof(struct pthread)); + _thread_initial = pthread; pthread->arch_id = _set_curthread(NULL, pthread); - /* Zero the initial thread structure: */ - memset(pthread, 0, sizeof(struct pthread)); /* Get our thread id. */ thr_self(&pthread->thr_id); |
