aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorMark Rutland <[email protected]>2013-07-18 17:20:32 +0100
committerRussell King <[email protected]>2013-07-22 14:30:34 +0100
commitb60d5db690f72a7cfe5e39f191f0719a9ef3a096 (patch)
tree68460ed3afbca3ce216ff97636e9e91e0c3bc524 /lib/mpi/mpi-bit.c
parentc65b7e98b4edce7faf534154b28eae8fb579144b (diff)
ARM: 7786/1: hyp: fix macro parameterisation
Currently, compare_cpu_mode_with_primary uses a mixture of macro arguments and hardcoded registers, and does so incorrectly, as it stores (__boot_cpu_mode_offset | BOOT_CPU_MODE_MISMATCH) to (__boot_cpu_mode + &__boot_cpu_mode_offset), which could corrupt an arbitrary portion of memory. This patch fixes up compare_cpu_mode_with_primary to use the macro arguments, correctly updating __boot_cpu_mode. Signed-off-by: Mark Rutland <[email protected]> Acked-by: Dave Martin <[email protected]> Acked-by: Marc Zyngier <[email protected]> Cc: Christoffer Dall <[email protected]> Signed-off-by: Russell King <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions