Skip to content

Commit be63182

Browse files
chleroygregkh
authored andcommitted
powerpc/52xx: Fix an invalid ASM expression ('addi' used instead of 'add')
[ Upstream commit 8a87a50 ] AS arch/powerpc/platforms/52xx/lite5200_sleep.o arch/powerpc/platforms/52xx/lite5200_sleep.S: Assembler messages: arch/powerpc/platforms/52xx/lite5200_sleep.S:184: Warning: invalid register expression In the following code, 'addi' is wrong, has to be 'add' /* local udelay in sram is needed */ udelay: /* r11 - tb_ticks_per_usec, r12 - usecs, overwrites r13 */ mullw r12, r12, r11 mftb r13 /* start */ addi r12, r13, r12 /* end */ Fixes: ee98307 ("[POWERPC] MPC5200 low power mode") Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/cb4cec9131c8577803367f1699209a7e104cec2a.1619025821.git.christophe.leroy@csgroup.eu Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent e06a532 commit be63182

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/powerpc/platforms/52xx/lite5200_sleep.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ sram_code:
181181
udelay: /* r11 - tb_ticks_per_usec, r12 - usecs, overwrites r13 */
182182
mullw r12, r12, r11
183183
mftb r13 /* start */
184-
addi r12, r13, r12 /* end */
184+
add r12, r13, r12 /* end */
185185
1:
186186
mftb r13 /* current */
187187
cmp cr0, r13, r12

0 commit comments

Comments
 (0)