On Wed, Jan 19, 2011 at 9:14 AM, Carmelo AMOROSO <[email protected]> wrote:
>> diff --git a/libpthread/nptl/pthread_create.c 
>> b/libpthread/nptl/pthread_create.c
>> index 63e5588..42ffbaf 100644
>> --- a/libpthread/nptl/pthread_create.c
>> +++ b/libpthread/nptl/pthread_create.c
>> @@ -383,7 +383,8 @@ start_thread (void *arg)
>> char *sp = CURRENT_STACK_FRAME;
>> size_t freesize = (sp - (char *) pd->stackblock) & ~pagesize_m1;
>> #else
>> -# error "to do"
>> + char *sp = CURRENT_STACK_FRAME;
>> + size_t freesize = ((char *) pd->stackblock - sp) & ~pagesize_m1;
>> #endif
>> assert (freesize < pd->stackblock_size);
>> if (freesize > PTHREAD_STACK_MIN)
>> --
>> 1.7.2.2
>> _______________________________________________
>> uClibc mailing list
>> [email protected]
>> http://lists.busybox.net/mailman/listinfo/uclibc
>>
>
> Lookg good. On which arch have you tested it ?

Our arch is currently out of tree. I think the only other arch with
this kind of upside down stack is parisc, but I haven't been able to
test on of those.
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to