arm-trusted-firmware/docs
Deepika Bhavnani 5b33ad174a Unify type of "cpu_idx" across PSCI module.
NOTE for platform integrators:
   API `plat_psci_stat_get_residency()` third argument
   `last_cpu_idx` is changed from "signed int" to the
   "unsigned int" type.

Issue / Trouble points
1. cpu_idx is used as mix of `unsigned int` and `signed int` in code
with typecasting at some places leading to coverity issues.

2. Underlying platform API's return cpu_idx as `unsigned int`
and comparison is performed with platform specific defines
`PLAFORM_xxx` which is not consistent

Misra Rule 10.4:
The value of a complex expression of integer type may only be cast to
a type that is narrower and of the same signedness as the underlying
type of the expression.

Based on above points, cpu_idx is kept as `unsigned int` to match
the API's and low-level functions and platform defines are updated
where ever required

Signed-off-by: Deepika Bhavnani <deepika.bhavnani@arm.com>
Change-Id: Ib26fd16e420c35527204b126b9b91e8babcc3a5c
2020-01-10 17:11:51 +00:00
..
about Update list of main maintainers 2019-12-16 11:49:38 +01:00
components Merge "debugfs: add SMC channel" into integration 2019-12-20 20:56:23 +00:00
design Merge "bl31: Split into two separate memory regions" into integration 2020-01-02 15:53:31 +00:00
getting_started Unify type of "cpu_idx" across PSCI module. 2020-01-10 17:11:51 +00:00
perf doc: Split the User Guide into multiple files 2019-11-27 10:45:54 +00:00
plat docs: tegra: add support for Tegra194 class of SoCs 2019-12-10 10:06:48 -08:00
process Remove -Wpadded warning 2019-12-16 09:05:42 +00:00
resources doc: Fix syntax erros in I/O storage layer plantuml diagrams 2019-10-28 14:19:27 +01:00
security_advisories TF-A Documentation: Update Security Advisory TFV-5 (CVE-2017-15031) 2019-11-04 14:53:10 +00:00
Makefile doc: Add minimal Sphinx support 2019-05-21 12:31:25 +01:00
change-log.rst docs: Add Cortex-Hercules/HerculesAE CPU support 2019-11-13 10:54:52 -06:00
conf.py doc: Remove version and release variables from conf.py 2019-10-17 13:46:38 +00:00
global_substitutions.txt doc: Add missing terms to the glossary 2019-11-14 15:37:45 +00:00
glossary.rst doc: Add missing terms to the glossary 2019-11-14 15:37:45 +00:00
index.rst doc: Move platform list to the Platform Ports index page 2019-10-21 13:31:49 +00:00
license.rst doc: Convert internal links to RST format 2019-10-08 15:58:03 +00:00
requirements.txt doc: Generate PlantUML diagrams automatically 2019-07-12 14:15:25 +01:00