diff options
author | Paul Beesley <paul.beesley@arm.com> | 2019-01-21 11:57:42 +0000 |
---|---|---|
committer | Paul Beesley <paul.beesley@arm.com> | 2019-01-29 10:12:05 +0000 |
commit | bdad86e9c805a8cf978e19ed248f1864a67e3591 (patch) | |
tree | a2404e023996bb15135969b62c7a13357321438c /docs | |
parent | 12cfc60256ef2fe7d84495f7b332033973372325 (diff) | |
download | platform_external_arm-trusted-firmware-bdad86e9c805a8cf978e19ed248f1864a67e3591.tar.gz platform_external_arm-trusted-firmware-bdad86e9c805a8cf978e19ed248f1864a67e3591.tar.bz2 platform_external_arm-trusted-firmware-bdad86e9c805a8cf978e19ed248f1864a67e3591.zip |
doc: Add AAPCS link to coding guidelines
Change-Id: Id0e6d272b6d3d37eab785273f9c12c093191f3fc
Signed-off-by: Paul Beesley <paul.beesley@arm.com>
Diffstat (limited to 'docs')
-rw-r--r-- | docs/coding-guidelines.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/coding-guidelines.rst b/docs/coding-guidelines.rst index 21cd91beb..0fb23d962 100644 --- a/docs/coding-guidelines.rst +++ b/docs/coding-guidelines.rst @@ -64,7 +64,8 @@ type usage guidelines should be followed: - Use ``int`` as the default integer type - it's likely to be the fastest on all systems. Also this can be assumed to be 32-bit as a consequence of the - Procedure Call Standard for the Arm Architecture. + `Procedure Call Standard for the Arm Architecture`_ and the `Procedure Call + Standard for the Arm 64-bit Architecture`_ . - Avoid use of ``short`` as this may end up being slower than ``int`` in some systems. If a variable must be exactly 16-bit, use ``int16_t`` or @@ -503,3 +504,5 @@ have ``const`` arguments, assuming they don't need to modify the data. .. _`Linux Coding Style`: https://www.kernel.org/doc/html/latest/process/coding-style.html .. _`Linus's tree`: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/scripts/checkpatch.pl .. _`Why the “volatile” type class should not be used`: https://www.kernel.org/doc/html/latest/process/volatile-considered-harmful.html +.. _`Procedure Call Standard for the Arm Architecture`: http://infocenter.arm.com/help/topic/com.arm.doc.ihi0042f/IHI0042F_aapcs.pdf +.. _`Procedure Call Standard for the Arm 64-bit Architecture`: http://infocenter.arm.com/help/topic/com.arm.doc.ihi0055b/IHI0055B_aapcs64.pdf |