summaryrefslogtreecommitdiffstats
path: root/porting/code_tuning.rst
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2016-10-27 20:01:47 -0500
committerJoel Sherrill <joel@rtems.org>2016-10-27 20:01:47 -0500
commitb0f29772e22edbf3b2adf2e058fc445da4419e2c (patch)
treecf165860dd2ba7e0c94f48928c1aeb2a5c475f1a /porting/code_tuning.rst
parentf29b7c1cc5dfe039752fde5556e712f1897a0df6 (diff)
downloadrtems-docs-b0f29772e22edbf3b2adf2e058fc445da4419e2c.tar.bz2
porting: Fix code-block markup
Diffstat (limited to 'porting/code_tuning.rst')
-rw-r--r--porting/code_tuning.rst12
1 files changed, 6 insertions, 6 deletions
diff --git a/porting/code_tuning.rst b/porting/code_tuning.rst
index a4fb2af..5fd664e 100644
--- a/porting/code_tuning.rst
+++ b/porting/code_tuning.rst
@@ -21,7 +21,7 @@ unless you are in an interrupt handler and that interrupt handler invokes
the executive.] When not inlined something calls _Thread_Enable_dispatch
which in turns calls _Thread_Dispatch. If the enable dispatch is inlined,
then one subroutine call is avoided entirely.]
-.. code:: c
+.. code-block:: c
#define CPU_INLINE_ENABLE_DISPATCH FALSE
@@ -44,7 +44,7 @@ the loop body. In this case, it might be desirable to unroll the loop.
It is important to note that on some CPUs, this code is the longest
interrupt disable period in RTEMS. So it is necessary to strike a balance
when setting this parameter.
-.. code:: c
+.. code-block:: c
#define CPU_UNROLL_ENQUEUE_PRIORITY TRUE
@@ -79,7 +79,7 @@ currently uses this feature.
The following illustrates how the CPU_STRUCTURE_ALIGNMENT is defined on
ports which require no special alignment for optimized access to data
structures:
-.. code:: c
+.. code-block:: c
#define CPU_STRUCTURE_ALIGNMENT
@@ -97,7 +97,7 @@ account the requirements for the stack.
The following sets the CPU_ALIGNMENT macro to 8 which indicates that there
is a basic C data type for this port which much be aligned to an 8 byte
boundary.
-.. code:: c
+.. code-block:: c
#define CPU_ALIGNMENT 8
@@ -116,7 +116,7 @@ use by high level language routines.
The following example illustrates how the CPU_HEAP_ALIGNMENT macro is set
when the required alignment for elements from the heap is the same as the
basic CPU alignment requirements.
-.. code:: c
+.. code-block:: c
#define CPU_HEAP_ALIGNMENT CPU_ALIGNMENT
@@ -140,7 +140,7 @@ The following example illustrates how the CPU_PARTITION_ALIGNMENT macro is
set when the required alignment for elements from the RTEMS Partition
Manager is the same as the basic CPU alignment requirements.
-.. code:: c
+.. code-block:: c
#define CPU_PARTITION_ALIGNMENT CPU_ALIGNMENT