arm-trusted-firmware/lib
Graeme Gregory a86865ac42 PSCI: fix limit of 256 CPUs caused by cast to unsigned char
In psci_setup.c psci_init_pwr_domain_node() takes an unsigned
char as node_idx which limits it to initialising only the first
256 CPUs. As the calling function does not check for a limit of
256 I think this is a bug so change the unsigned char to
uint16_t and change the cast from the calling site in
populate_power_domain_tree().

Also update the non_cpu_pwr_domain_node structure lock_index
to uint16_t and update the function signature for psci_lock_init()
appropriately.

Finally add a define PSCI_MAX_CPUS_INDEX to psci_private.h and add
a CASSERT to psci_setup.c to make sure PLATFORM_CORE_COUNT cannot
exceed the index value.

Signed-off-by: Graeme Gregory <graeme@nuviainc.com>
Change-Id: I9e26842277db7483fd698b46bbac62aa86e71b45
2020-12-22 07:39:51 +00:00
..
aarch32 TF-A Aarch32: optimise memcpy4() 2020-07-23 18:35:49 +01:00
aarch64 Increase type widths to satisfy width requirements 2020-10-12 10:55:03 -05:00
bl_aux_params Introduce lightweight BL platform parameter library 2019-07-18 16:42:40 -07:00
compiler-rt compiler_rt: Import popcountdi2.c and popcountsi2.c files 2020-01-20 11:32:59 +01:00
coreboot Update in coreboot_get_memory_type API to include size as well 2020-10-16 02:23:35 +05:30
cpus Workaround for Cortex A76 erratum 1946160 2020-12-18 17:41:23 +00:00
debugfs cert_create: add Platform owned secure partitions support 2020-08-12 14:30:18 +01:00
el3_runtime Aarch64: Add support for FEAT_MTE3 2020-12-02 13:53:03 +00:00
extensions Add support for FEAT_MTPMU for Armv8.6 2020-12-11 12:49:20 +00:00
fconf lib: fconf: Implement a parser to populate CoT 2020-09-15 16:13:26 +01:00
libc Don't return error information from console_flush 2020-10-09 10:21:50 -05:00
libfdt libfdt: Upgrade libfdt source files 2020-10-02 12:15:48 +00:00
locks locks: bakery: use is_dcache_enabled() helper 2020-04-07 09:33:13 +02:00
optee Coverity: remove unnecessary header file includes 2020-02-04 10:23:51 -06:00
pmf Sanitise includes across codebase 2019-01-04 10:43:17 +00:00
psci PSCI: fix limit of 256 CPUs caused by cast to unsigned char 2020-12-22 07:39:51 +00:00
romlib Use abspath to dereference $BUILD_BASE 2020-08-04 18:02:02 +01:00
semihosting MISRA cleanup in mem_region and semihosting files 2020-08-07 19:11:23 -05:00
stack_protector Disable stack protection explicitly 2019-10-20 14:59:09 -04:00
utils MISRA cleanup in mem_region and semihosting files 2020-08-07 19:11:23 -05:00
xlat_tables Aarch32 xlat_tables lib: Fix MISRA-2012 defects 2020-07-29 12:48:34 +00:00
xlat_tables_v2 Increase type widths to satisfy width requirements 2020-10-12 10:55:03 -05:00
zlib Sanitise includes across codebase 2019-01-04 10:43:17 +00:00