diff options
author | Dimitris Papastamos <dimitris.papastamos@arm.com> | 2018-05-21 16:31:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-21 16:31:04 +0100 |
commit | dcf0bdb60eeaa6734412a2a89e582c09f8b55029 (patch) | |
tree | 61ce99c9b3b4ec1f81cae48ba770561182b5de4f /drivers | |
parent | 1f4d62df6cba1cb25e40ea050f5327c1c4d4a7b9 (diff) | |
parent | 8abcdf921a0b5fd5c33f1a43706cbb4eca8c8742 (diff) |
Merge pull request #1359 from danielboulby-arm/db/match_flags_type
Ensure read and write of flags defined in the console struct are 32 bit
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/console/aarch64/multi_console.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/console/aarch64/multi_console.S b/drivers/console/aarch64/multi_console.S index a85a6a56..0464776b 100644 --- a/drivers/console/aarch64/multi_console.S +++ b/drivers/console/aarch64/multi_console.S @@ -200,7 +200,7 @@ putc_loop: cbz x14, putc_done adrp x1, console_state ldrb w1, [x1, :lo12:console_state] - ldr x2, [x14, #CONSOLE_T_FLAGS] + ldr w2, [x14, #CONSOLE_T_FLAGS] tst w1, w2 b.eq putc_continue ldr x2, [x14, #CONSOLE_T_PUTC] @@ -246,7 +246,7 @@ getc_try_again: getc_loop: adrp x0, console_state ldrb w0, [x0, :lo12:console_state] - ldr x1, [x14, #CONSOLE_T_FLAGS] + ldr w1, [x14, #CONSOLE_T_FLAGS] tst w0, w1 b.eq getc_continue ldr x1, [x14, #CONSOLE_T_GETC] @@ -287,7 +287,7 @@ flush_loop: cbz x14, flush_done adrp x1, console_state ldrb w1, [x1, :lo12:console_state] - ldr x2, [x14, #CONSOLE_T_FLAGS] + ldr w2, [x14, #CONSOLE_T_FLAGS] tst w1, w2 b.eq flush_continue ldr x1, [x14, #CONSOLE_T_FLUSH] |