---
 doc/user/smp.t |   38 ++++++++++++++++++++++++++++++++++++++
 1 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/doc/user/smp.t b/doc/user/smp.t
index b0d1189..3d565ef 100644
--- a/doc/user/smp.t
+++ b/doc/user/smp.t
@@ -258,6 +258,44 @@ maximum count of application configured processors.
 None.
 
 @c
+@c rtems_get_current_processor
+@c
+@page
+@subsection GET_CURRENT_PROCESSOR - Get current processor index
+
+@subheading CALLING SEQUENCE:
+
+@ifset is-C
+@example
+uint32_t rtems_get_current_processor(void);
+@end example
+@end ifset
+
+@ifset is-Ada
+@end ifset
+
+@subheading DIRECTIVE STATUS CODES:
+
+The index of the current processor.
+
+@subheading DESCRIPTION:
+
+On uni-processor configurations a value of zero will be returned.
+
+On SMP configurations an architecture specific method is used to obtain the
+index of the current processor in the system.  The set of processor indices is
+the range of integers starting with zero up to the processor count minus one.
+
+Outside of sections with disabled thread dispatching the current processor
+index may change after every instruction since the thread may migrate from one
+processor to another.  Sections with disabled interrupts are sections with
+thread dispatching disabled.
+
+@subheading NOTES:
+
+None.
+
+@c
 @c rtems_task_get_affinity
 @c
 @page
-- 
1.7.7

_______________________________________________
rtems-devel mailing list
rtems-devel@rtems.org
http://www.rtems.org/mailman/listinfo/rtems-devel

Reply via email to