aboutsummaryrefslogtreecommitdiff
path: root/llfw/boot_abort.S
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2018-06-13 16:54:23 +0200
committerAlexey Kardashevskiy <aik@ozlabs.ru>2018-07-02 14:16:45 +1000
commit203f6686dc3953a7248abb4f3e895a68c65d9b10 (patch)
tree3893d3dc9a847fc8dc516f59ac0039e9ceb87b67 /llfw/boot_abort.S
parent031cb1b921694f0c8676e0b478a3dccbae9d1639 (diff)
downloadSLOF-203f6686dc3953a7248abb4f3e895a68c65d9b10.zip
SLOF-203f6686dc3953a7248abb4f3e895a68c65d9b10.tar.gz
SLOF-203f6686dc3953a7248abb4f3e895a68c65d9b10.tar.bz2
Fix bad assembler statements for compiling with gcc 8.1 / as 2.30
When compiling with a very recent toolchain, I get these warnings: ../../llfw/boot_abort.S: Assembler messages: ../../llfw/boot_abort.S:76: Warning: invalid register expression and: stage2_head.S: Assembler messages: stage2_head.S:57: Warning: invalid register expression The first one is using the wrong opcode, we should use "and" instead of "andi" here. The second one is using a register instead of a constant for load-immediate, which is non-sense, too. Fix it to use the right constant instead. Signed-off-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Laurent Vivier <lvivier@redhat.com> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'llfw/boot_abort.S')
-rw-r--r--llfw/boot_abort.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/llfw/boot_abort.S b/llfw/boot_abort.S
index 996bdd7..47a9178 100644
--- a/llfw/boot_abort.S
+++ b/llfw/boot_abort.S
@@ -73,7 +73,7 @@ ASM_ENTRY(boot_abort)
/* check if i/o is possible, if yes then print message */
li r10, ABORT_CANIO
- andi. r3, r31, r10
+ and. r3, r31, r10
bne abort_noio
/* use i/o ..., first print reference message */