Skip to content

Commit

Permalink
asm: Fix up assembly for clang
Browse files Browse the repository at this point in the history
asm/head.S:766:17: error: unknown operand
 or %r0,%r4,%r5,
                ^
asm/head.S:800:17: error: unknown operand
 or %r0,%r4,%r5,
                ^
Acked-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
  • Loading branch information
shenki authored and stewartsmith committed May 4, 2018
1 parent 777de50 commit 4640e70
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions asm/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -763,7 +763,7 @@ init_shared_sprs:
li %r0,1
sldi %r4,%r0,(63-13)
sldi %r5,%r0,(63-19)
or %r0,%r4,%r5,
or %r0,%r4,%r5
andc %r3,%r3,%r0
sync
mtspr SPR_HID0,%r3
Expand Down Expand Up @@ -797,7 +797,7 @@ init_shared_sprs:
li %r0,1
sldi %r4,%r0,(63-5)
sldi %r5,%r0,(63-4)
or %r0,%r4,%r5,
or %r0,%r4,%r5
andc %r3,%r3,%r0
sync
mtspr SPR_HID0,%r3
Expand Down

0 comments on commit 4640e70

Please sign in to comment.