diff options
| author | Marcel Moolenaar <marcel@FreeBSD.org> | 2003-01-06 00:56:23 +0000 |
|---|---|---|
| committer | Marcel Moolenaar <marcel@FreeBSD.org> | 2003-01-06 00:56:23 +0000 |
| commit | 4b1d654efb3395bc768ed5b034a7b311bea76185 (patch) | |
| tree | 5c81c5d4df8691906e30b75b5583d89f7b456055 /lib/libc_r/uthread/uthread_init.c | |
| parent | 9363b901530b419c7c6f2e03eddf7175f9248be0 (diff) | |
Notes
Diffstat (limited to 'lib/libc_r/uthread/uthread_init.c')
| -rw-r--r-- | lib/libc_r/uthread/uthread_init.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/libc_r/uthread/uthread_init.c b/lib/libc_r/uthread/uthread_init.c index d1d116e25ede..41737b198b77 100644 --- a/lib/libc_r/uthread/uthread_init.c +++ b/lib/libc_r/uthread/uthread_init.c @@ -373,8 +373,13 @@ _thread_init(void) /* Setup the context for the scheduler: */ _setjmp(_thread_kern_sched_jb); +#if !defined(__ia64__) SET_STACK_JB(_thread_kern_sched_jb, _thread_kern_sched_stack + sched_stack_size - sizeof(double)); +#else + SET_STACK_JB(_thread_kern_sched_jb, _thread_kern_sched_stack, + sched_stack_size); +#endif SET_RETURN_ADDR_JB(_thread_kern_sched_jb, _thread_kern_scheduler); /* |
