Stack Base Address on ARM9, using uclibc 0.9.28

Guenter Obiltschnig guenter.obiltschnig at appinf.com
Fri Aug 31 00:55:30 PDT 2007


Hi there,

is there any way to find out the stack base address for the current  
thread on an ARM9 platform, using uclibc 0.9.28?

We're currently porting some code to a uclibc based system, and part  
of that code does something like:

pthread_getattr_np(currentThread, &attr);
pthread_attr_getstack(&attr, &base, &size);
return base + size;

to determine the stack base address. Now the problem is that  
pthread_getattr_np is not implemented in 0.9.28 (it's commented out  
in the pthread.h header file).

Does anyone know an alternative way to accomplish the same thing?  
Maybe something involving inline assembly?

Thanks in advance and best regards,

Günter




More information about the uClibc mailing list