]> git.baikalelectronics.ru Git - arm-tf.git/commit
cpus: Fix some incorrect definitions in CPU headers
authorAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Mon, 11 Feb 2019 13:34:54 +0000 (13:34 +0000)
committerAntonio Nino Diaz <antonio.ninodiaz@arm.com>
Mon, 11 Feb 2019 13:34:54 +0000 (13:34 +0000)
commita69817eda242d350f2ed9710eb2dbb1220b1cc17
tree88dc4849ae4d947ecf2ad2a98c3f62f62bb584d5
parent873e394b3bf93214a441f9f98237b58fbbea55aa
cpus: Fix some incorrect definitions in CPU headers

There are some values that should be 64-bit immediates but that resolve
to 0 because the type of the value is 32-bit wide. This patch casts the
expressions to 64-bit before the shift so that the definition has the
correct value.

The definitions are only used in assembly so far, so the code is not
actually affected by this bug. The assembler treats all values as 64-bit
values, so there are no overflows.

Change-Id: I965e4be631c1d28787c0913661d224c82a6b9155
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
include/lib/cpus/aarch32/cortex_a53.h
include/lib/cpus/aarch64/cortex_a53.h
include/lib/cpus/aarch64/cortex_a57.h
include/lib/cpus/aarch64/cortex_a75.h