Skip to content

Commit 8d8a629

Browse files
committed
powerpc/40x: Fix assembler warning about r0
The assembler says: arch/powerpc/kernel/head_40x.S:623: Warning: invalid register expression It's objecting to the use of r0 as the RA argument. That's because when RA = 0 the literal value 0 is used, rather than the content of r0, making the use of r0 in the source potentially confusing. Fix it to use a literal 0, the generated code is identical. Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent af0870c commit 8d8a629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/kernel/head_40x.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ start_here:
620620
ori r6, r6, swapper_pg_dir@l
621621
lis r5, abatron_pteptrs@h
622622
ori r5, r5, abatron_pteptrs@l
623-
stw r5, 0xf0(r0) /* Must match your Abatron config file */
623+
stw r5, 0xf0(0) /* Must match your Abatron config file */
624624
tophys(r5,r5)
625625
stw r6, 0(r5)
626626

0 commit comments

Comments
 (0)