diff options
author | Joel Sherrill <joel@rtems.org> | 2016-10-27 20:01:47 -0500 |
---|---|---|
committer | Joel Sherrill <joel@rtems.org> | 2016-10-27 20:01:47 -0500 |
commit | b0f29772e22edbf3b2adf2e058fc445da4419e2c (patch) | |
tree | cf165860dd2ba7e0c94f48928c1aeb2a5c475f1a /porting/idle_thread.rst | |
parent | bsp_howto: Fix code-block markup (diff) | |
download | rtems-docs-b0f29772e22edbf3b2adf2e058fc445da4419e2c.tar.bz2 |
porting: Fix code-block markup
Diffstat (limited to 'porting/idle_thread.rst')
-rw-r--r-- | porting/idle_thread.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/porting/idle_thread.rst b/porting/idle_thread.rst index c0a350a..317cf2a 100644 --- a/porting/idle_thread.rst +++ b/porting/idle_thread.rst @@ -22,7 +22,7 @@ required to preempt the IDLE task from an interrupt because the floating point context must be saved as part of the preemption. The following illustrates how to set this macro: -.. code:: c +.. code-block:: c #define CPU_IDLE_TASK_IS_FP FALSE @@ -56,7 +56,7 @@ The order of precedence for selecting the IDLE thread body is: # generic (if no BSP and no CPU dependent) The following illustrates setting the CPU_PROVIDES_IDLE_THREAD_BODY macro: -.. code:: c +.. code-block:: c #define CPU_PROVIDES_IDLE_THREAD_BODY TRUE @@ -71,7 +71,7 @@ wishes to include a CPU dependent IDLE thread body. If the port includes a CPU dependent implementation of the IDLE thread body, then the CPU_PROVIDES_IDLE_THREAD_BODY macro should be defined to TRUE. This routine is prototyped as follows: -.. code:: c +.. code-block:: c void *_CPU_Thread_Idle_body( uintptr_t ); @@ -80,7 +80,7 @@ thread body be provided as part of the port. If CPU_PROVIDES_IDLE_THREAD_BODY is defined to FALSE, then the CPU independent algorithm is used. This algorithm consists of a "branch to self" which is implemented in a routine as follows. -.. code:: c +.. code-block:: c void *_Thread_Idle_body( uintptr_t ignored ) { @@ -91,7 +91,7 @@ If the CPU dependent IDLE thread body is implementation centers upon using a "halt", "idle", or "shutdown" instruction, then don't forget to put it in an infinite loop as the CPU will have to reexecute this instruction each time the IDLE thread is dispatched. -.. code:: c +.. code-block:: c void *_CPU_Thread_Idle_body( uintptr_t ignored ) { |