chore: update to use Arm word across TF-AAlign entire TF-A to use Arm in copyright header.Change-Id: Ief9992169efdab61d0da6bd8c5180de7a4bc2244Signed-off-by: Govindraj Raja <govindraj.raja@arm.co
chore: update to use Arm word across TF-AAlign entire TF-A to use Arm in copyright header.Change-Id: Ief9992169efdab61d0da6bd8c5180de7a4bc2244Signed-off-by: Govindraj Raja <govindraj.raja@arm.com>
show more ...
fix: integer suffix macro definitionThe current implementation of macro L/LL/UL/ULL concatenates the inputwith "L"/"LL"/"UL"/"ULL" respectively.In the case where a macro is passed to L/LL/UL/ULL
fix: integer suffix macro definitionThe current implementation of macro L/LL/UL/ULL concatenates the inputwith "L"/"LL"/"UL"/"ULL" respectively.In the case where a macro is passed to L/LL/UL/ULL as input,the input macro name is concatenated with, rather than expandingthe input macro and then concatenating it.The implementation of L/LL/UL/ULL is modified to two level macro,so as to concatenate to the expansion of a macro argument.Change 5b33ad174a0 "Unify type of "cpu_idx" across PSCI module."has modified the implementation of U() to two level macros withoutchanging the implementation of other macros.Change-Id: Ie93d67dff5ce96223a3faf6c98b98fcda530fc34Signed-off-by: Akshay Belsare <akshay.belsare@amd.com>
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 i
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 points1. cpu_idx is used as mix of `unsigned int` and `signed int` in codewith 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 consistentMisra Rule 10.4:The value of a complex expression of integer type may only be cast toa type that is narrower and of the same signedness as the underlyingtype of the expression.Based on above points, cpu_idx is kept as `unsigned int` to matchthe API's and low-level functions and platform defines are updatedwhere ever requiredSigned-off-by: Deepika Bhavnani <deepika.bhavnani@arm.com>Change-Id: Ib26fd16e420c35527204b126b9b91e8babcc3a5c
Factor out cross-BL API into export headers suitable for 3rd party codeThis patch adds a new include/export/ directory meant for inclusion inthird-party code. This is useful for cases where third-
Factor out cross-BL API into export headers suitable for 3rd party codeThis patch adds a new include/export/ directory meant for inclusion inthird-party code. This is useful for cases where third-party code needsto interact with TF-A interfaces and data structures (such as a customBL2-implementation like coreboot handing off to BL31). Directlyincluding headers from the TF-A repository avoids having to duplicateall these definitions (and risk them going stale), but with the currentheader structure this is not possible because handoff API definitionsare too deeply intertwined with other TF code/headers and chain-includeother headers that will not be available in the other environment.The new approach aims to solve this by separating only the parts thatare really needed into these special headers that are self-contained andwill not chain-include other (non-export) headers. TF-A code shouldnever include them directly but should instead always include therespective wrapper header, which will include the required prerequisites(like <stdint.h>) before including the export header. Third-party codecan include the export headers via its own wrappers that make sure thenecessary definitions are available in whatever way that environment canprovide them.Change-Id: Ifd769320ba51371439a8e5dd5b79c2516c3b43abSigned-off-by: Julius Werner <jwerner@chromium.org>