Ensure read and write of flags are 32 bit
authorDaniel Boulby <daniel.boulby@arm.com>
Wed, 16 May 2018 15:04:35 +0000 (16:04 +0100)
committerDaniel Boulby <daniel.boulby@arm.com>
Thu, 17 May 2018 15:42:41 +0000 (16:42 +0100)
commit8abcdf921a0b5fd5c33f1a43706cbb4eca8c8742
tree6dc69c649f2b57180962df725b6bb2213efde727
parentdc59ff343647c22403a8537f23eba27a7744218e
Ensure read and write of flags are 32 bit

In 'console_set_scope' and when registering a console, field 'flags' of
'console_t' is assigned a 32-bit value. However, when it is actually
used, the functions perform 64-bit reads to access its value. This patch
changes all 64-bit reads to 32-bit reads.

Change-Id: I181349371409e60065335f078857946fa3c32dc1
Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
drivers/console/aarch64/multi_console.S
include/drivers/console.h