fix(build): use assignment instead of memcpy to avoid a GCC 11 bugGCC11 has a bug where it may produce an incorrect warning "writing 1 ormore bytes into a region of size 0 overflows the destinatio
fix(build): use assignment instead of memcpy to avoid a GCC 11 bugGCC11 has a bug where it may produce an incorrect warning "writing 1 ormore bytes into a region of size 0 overflows the destination" when usingmemcpy and memset [0]. Since we use -Werror, this warning is fatal andprevents building certain configurations with GCC11. Enabling LTO makesthe problem worse as the compiler has more visibility to do a wideranalysis.This patch fixes this by using syntactic assignment rather than libraryfunctions in the places that most often cause problems. GCC11 is able tocorrectly analyse those scenarios and does not emit a warning. There isa slight upside to this in that it may be able to produce more optimalcode.[0]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106199Change-Id: I897e6360b8619ba1d4587d3abf84ffdd31f17273Signed-off-by: Boyan Karatotev <boyan.karatotev@arm.com>
show more ...
arm/css/scpi: Don't panic if the SCP fails to respondInstead, pass back the error to the calling function. This allowsplatform code to fall back to another PSCI implementation ifscpi_wait_ready()
arm/css/scpi: Don't panic if the SCP fails to respondInstead, pass back the error to the calling function. This allowsplatform code to fall back to another PSCI implementation ifscpi_wait_ready() or a later SCPI command fails.Signed-off-by: Samuel Holland <samuel@sholland.org>Change-Id: Ib4411e63c2512857f09ffffe1c405358dddeb4a6
Minor changes to documentation and commentsFix some typos and clarify some sentences.Change-Id: Id276d1ced9a991b4eddc5c47ad9a825e6b29ef74Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.co
Minor changes to documentation and commentsFix some typos and clarify some sentences.Change-Id: Id276d1ced9a991b4eddc5c47ad9a825e6b29ef74Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
plat/arm: scpi: Move to drivers/ folderChange-Id: Icc59cdaf2b56f6936e9847f1894594c671db2e94Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>