summaryrefslogtreecommitdiffstats
path: root/porting/idle_thread.rst
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2016-10-27 19:47:07 -0500
committerJoel Sherrill <joel@rtems.org>2016-10-27 19:47:07 -0500
commit36def9125c9adf4049a18105d48715ac8606e1ec (patch)
treeb9a3c06d3fad69f3213474d5d16d844b862cc268 /porting/idle_thread.rst
parent2b175c323836ceb3bfcf0f5e32409c8bb570a89b (diff)
downloadrtems-docs-36def9125c9adf4049a18105d48715ac8606e1ec.tar.bz2
rtems-docs: Fix many unnecessary back slashes
Diffstat (limited to 'porting/idle_thread.rst')
-rw-r--r--porting/idle_thread.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/porting/idle_thread.rst b/porting/idle_thread.rst
index 397a218..c0a350a 100644
--- a/porting/idle_thread.rst
+++ b/porting/idle_thread.rst
@@ -73,7 +73,7 @@ CPU_PROVIDES_IDLE_THREAD_BODY macro should be defined to TRUE. This
routine is prototyped as follows:
.. code:: c
- void \*_CPU_Thread_Idle_body( uintptr_t );
+ void *_CPU_Thread_Idle_body( uintptr_t );
As mentioned above, RTEMS does not require that a CPU dependent IDLE
thread body be provided as part of the port. If
@@ -82,9 +82,9 @@ independent algorithm is used. This algorithm consists of a "branch to
self" which is implemented in a routine as follows.
.. code:: c
- void \*_Thread_Idle_body( uintptr_t ignored )
+ void *_Thread_Idle_body( uintptr_t ignored )
{
- while( 1 ) ;
+ while( 1 ) ;
}
If the CPU dependent IDLE thread body is implementation centers upon using
@@ -93,10 +93,10 @@ in an infinite loop as the CPU will have to reexecute this instruction
each time the IDLE thread is dispatched.
.. code:: c
- void \*_CPU_Thread_Idle_body( uintptr_t ignored )
+ void *_CPU_Thread_Idle_body( uintptr_t ignored )
{
- for( ; ; )
- /* insert your "halt" instruction here \*/ ;
+ for( ; ; )
+ /* insert your "halt" instruction here */ ;
}
Be warned. Some processors with onboard DMA have been known to stop the