In the Thread_Control is a cpu field. You can use _Per_CPU_Get_index()
to get the processor index.
On 05/20/2014 06:21 PM, Joel Sherrill wrote:
I meant for a thread that is executing. It may not be
the one executing.
I need the core number to be able to work with a
cpu_set_t.
On 5/20/2014 11:13 AM, Joel Sherrill wrote:
Hi
I was looking for a simple obvious method to do this
and I don't see it.
I backed out from the per cpu pointer to an index
but thought there had to be a better way.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.hu...@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
_______________________________________________
rtems-devel mailing list
rtems-devel@rtems.org
http://www.rtems.org/mailman/listinfo/rtems-devel