Commit 337e2f1f authored by Sandrine Bailleux's avatar Sandrine Bailleux
Browse files

Miscellaneous doc fixes/enhancements



Change-Id: I915303cea787d9fb188428b98ac6cfc610cc4470
Signed-off-by: default avatarSandrine Bailleux <sandrine.bailleux@arm.com>
parent 9aa6b637
...@@ -720,7 +720,7 @@ Example: the BL31 Chain of Trust ...@@ -720,7 +720,7 @@ Example: the BL31 Chain of Trust
Four image descriptors form the BL31 Chain of Trust: Four image descriptors form the BL31 Chain of Trust:
.. code:: asm .. code:: c
[TRUSTED_KEY_CERT_ID] = { [TRUSTED_KEY_CERT_ID] = {
.img_id = TRUSTED_KEY_CERT_ID, .img_id = TRUSTED_KEY_CERT_ID,
......
...@@ -85,7 +85,7 @@ file names; this type of name reuse should be otherwise avoided. ...@@ -85,7 +85,7 @@ file names; this type of name reuse should be otherwise avoided.
#include "./a_header.h" #include "./a_header.h"
Include statement variants Include statement variants
^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^
Two variants of the ``#include`` directive are acceptable in the TF codebase. Two variants of the ``#include`` directive are acceptable in the TF codebase.
Correct use of the two styles improves readability by suggesting the location Correct use of the two styles improves readability by suggesting the location
...@@ -125,7 +125,7 @@ Types and typedefs ...@@ -125,7 +125,7 @@ Types and typedefs
------------------ ------------------
Use of built-in *C* and *libc* data types Use of built-in *C* and *libc* data types
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The TF codebase should be kept as portable as possible, especially since both The TF codebase should be kept as portable as possible, especially since both
64-bit and 32-bit platforms are supported. To help with this, the following data 64-bit and 32-bit platforms are supported. To help with this, the following data
...@@ -214,9 +214,8 @@ type usage guidelines should be followed: ...@@ -214,9 +214,8 @@ type usage guidelines should be followed:
u_register_t arg7; u_register_t arg7;
} aapcs64_params_t; } aapcs64_params_t;
If some code wants to operate on ``arg0`` and knows that it represents a 32-bit
If some code wants to operate on ``arg0`` and knows that it represents a unsigned integer on all systems, cast it to ``unsigned int``.
32-bit unsigned integer on all systems, cast it to ``unsigned int``.
These guidelines should be updated if additional types are needed. These guidelines should be updated if additional types are needed.
......
...@@ -2343,7 +2343,7 @@ A publisher that wants to publish event ``foo`` would: ...@@ -2343,7 +2343,7 @@ A publisher that wants to publish event ``foo`` would:
A subscriber that wants to subscribe to event ``foo`` published above would A subscriber that wants to subscribe to event ``foo`` published above would
implement: implement:
:: .. code:: c
void *foo_handler(const void *arg) void *foo_handler(const void *arg)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment