Skip to content

Commit e44fc38

Browse files
agnersRussell King
authored andcommitted
ARM: 8844/1: use unified assembler in assembly files
Use unified assembler syntax (UAL) in assembly files. Divided syntax is considered deprecated. This will also allow to build the kernel using LLVM's integrated assembler. Signed-off-by: Stefan Agner <stefan@agner.ch> Acked-by: Nicolas Pitre <nico@linaro.org> Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
1 parent c001899 commit e44fc38

31 files changed

Lines changed: 124 additions & 124 deletions

‎arch/arm/boot/bootp/init.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ _start: add lr, pc, #-0x8 @ lr = current load addr
4444
*/
4545
movne r10, #0 @ terminator
4646
movne r4, #2 @ Size of this entry (2 words)
47-
stmneia r9, {r4, r5, r10} @ Size, ATAG_CORE, terminator
47+
stmiane r9, {r4, r5, r10} @ Size, ATAG_CORE, terminator
4848

4949
/*
5050
* find the end of the tag list, and then add an INITRD tag on the end.

‎arch/arm/boot/compressed/ll_char_wr.S‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Lrow4bpplp:
7575
tst r1, #7 @ avoid using r7 directly after
7676
str r7, [r0, -r5]!
7777
subne r1, r1, #1
78-
ldrneb r7, [r6, r1]
78+
ldrbne r7, [r6, r1]
7979
bne Lrow4bpplp
8080
ldmfd sp!, {r4 - r7, pc}
8181

@@ -103,7 +103,7 @@ Lrow8bpplp:
103103
sub r0, r0, r5 @ avoid ip
104104
stmia r0, {r4, ip}
105105
subne r1, r1, #1
106-
ldrneb r7, [r6, r1]
106+
ldrbne r7, [r6, r1]
107107
bne Lrow8bpplp
108108
ldmfd sp!, {r4 - r7, pc}
109109

‎arch/arm/include/asm/hardware/entry-macro-iomd.S‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@
1616
ldr \tmp, =irq_prio_h
1717
teq \irqstat, #0
1818
#ifdef IOMD_BASE
19-
ldreqb \irqstat, [\base, #IOMD_DMAREQ] @ get dma
19+
ldrbeq \irqstat, [\base, #IOMD_DMAREQ] @ get dma
2020
addeq \tmp, \tmp, #256 @ irq_prio_h table size
2121
teqeq \irqstat, #0
2222
bne 2406f
2323
#endif
24-
ldreqb \irqstat, [\base, #IOMD_IRQREQA] @ get low priority
24+
ldrbeq \irqstat, [\base, #IOMD_IRQREQA] @ get low priority
2525
addeq \tmp, \tmp, #256 @ irq_prio_d table size
2626
teqeq \irqstat, #0
2727
#ifdef IOMD_IRQREQC
28-
ldreqb \irqstat, [\base, #IOMD_IRQREQC]
28+
ldrbeq \irqstat, [\base, #IOMD_IRQREQC]
2929
addeq \tmp, \tmp, #256 @ irq_prio_l table size
3030
teqeq \irqstat, #0
3131
#endif
3232
#ifdef IOMD_IRQREQD
33-
ldreqb \irqstat, [\base, #IOMD_IRQREQD]
33+
ldrbeq \irqstat, [\base, #IOMD_IRQREQD]
3434
addeq \tmp, \tmp, #256 @ irq_prio_lc table size
3535
teqeq \irqstat, #0
3636
#endif
37-
2406: ldrneb \irqnr, [\tmp, \irqstat] @ get IRQ number
37+
2406: ldrbne \irqnr, [\tmp, \irqstat] @ get IRQ number
3838
.endm
3939

4040
/*

‎arch/arm/include/debug/tegra.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173

174174
.macro senduart, rd, rx
175175
cmp \rx, #0
176-
strneb \rd, [\rx, #UART_TX << UART_SHIFT]
176+
strbne \rd, [\rx, #UART_TX << UART_SHIFT]
177177
1001:
178178
.endm
179179

‎arch/arm/kernel/debug.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ hexbuf_rel: .long hexbuf_addr - .
8686
ENTRY(printascii)
8787
addruart_current r3, r1, r2
8888
1: teq r0, #0
89-
ldrneb r1, [r0], #1
89+
ldrbne r1, [r0], #1
9090
teqne r1, #0
9191
reteq lr
9292
2: teq r1, #'\n'

‎arch/arm/kernel/entry-armv.S‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,7 @@ call_fpe:
636636
@ Test if we need to give access to iWMMXt coprocessors
637637
ldr r5, [r10, #TI_FLAGS]
638638
rsbs r7, r8, #(1 << 8) @ CP 0 or 1 only
639-
movcss r7, r5, lsr #(TIF_USING_IWMMXT + 1)
639+
movscs r7, r5, lsr #(TIF_USING_IWMMXT + 1)
640640
bcs iwmmxt_task_enable
641641
#endif
642642
ARM( add pc, pc, r8, lsr #6 )
@@ -872,7 +872,7 @@ __kuser_cmpxchg64: @ 0xffff0f60
872872
smp_dmb arm
873873
1: ldrexd r0, r1, [r2] @ load current val
874874
eors r3, r0, r4 @ compare with oldval (1)
875-
eoreqs r3, r1, r5 @ compare with oldval (2)
875+
eorseq r3, r1, r5 @ compare with oldval (2)
876876
strexdeq r3, r6, r7, [r2] @ store newval if eq
877877
teqeq r3, #1 @ success?
878878
beq 1b @ if no then retry
@@ -896,8 +896,8 @@ __kuser_cmpxchg64: @ 0xffff0f60
896896
ldmia r1, {r6, lr} @ load new val
897897
1: ldmia r2, {r0, r1} @ load current val
898898
eors r3, r0, r4 @ compare with oldval (1)
899-
eoreqs r3, r1, r5 @ compare with oldval (2)
900-
2: stmeqia r2, {r6, lr} @ store newval if eq
899+
eorseq r3, r1, r5 @ compare with oldval (2)
900+
2: stmiaeq r2, {r6, lr} @ store newval if eq
901901
rsbs r0, r3, #0 @ set return val and C flag
902902
ldmfd sp!, {r4, r5, r6, pc}
903903

@@ -911,7 +911,7 @@ kuser_cmpxchg64_fixup:
911911
mov r7, #0xffff0fff
912912
sub r7, r7, #(0xffff0fff - (0xffff0f60 + (1b - __kuser_cmpxchg64)))
913913
subs r8, r4, r7
914-
rsbcss r8, r8, #(2b - 1b)
914+
rsbscs r8, r8, #(2b - 1b)
915915
strcs r7, [sp, #S_PC]
916916
#if __LINUX_ARM_ARCH__ < 6
917917
bcc kuser_cmpxchg32_fixup
@@ -969,7 +969,7 @@ kuser_cmpxchg32_fixup:
969969
mov r7, #0xffff0fff
970970
sub r7, r7, #(0xffff0fff - (0xffff0fc0 + (1b - __kuser_cmpxchg)))
971971
subs r8, r4, r7
972-
rsbcss r8, r8, #(2b - 1b)
972+
rsbscs r8, r8, #(2b - 1b)
973973
strcs r7, [sp, #S_PC]
974974
ret lr
975975
.previous

‎arch/arm/kernel/entry-common.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ sys_syscall:
373373
movhs scno, #0
374374
csdb
375375
#endif
376-
stmloia sp, {r5, r6} @ shuffle args
376+
stmialo sp, {r5, r6} @ shuffle args
377377
movlo r0, r1
378378
movlo r1, r2
379379
movlo r2, r3

‎arch/arm/kernel/entry-header.S‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -388,17 +388,17 @@
388388
badr lr, \ret @ return address
389389
.if \reload
390390
add r1, sp, #S_R0 + S_OFF @ pointer to regs
391-
ldmccia r1, {r0 - r6} @ reload r0-r6
392-
stmccia sp, {r4, r5} @ update stack arguments
391+
ldmiacc r1, {r0 - r6} @ reload r0-r6
392+
stmiacc sp, {r4, r5} @ update stack arguments
393393
.endif
394394
ldrcc pc, [\table, \tmp, lsl #2] @ call sys_* routine
395395
#else
396396
cmp \nr, #NR_syscalls @ check upper syscall limit
397397
badr lr, \ret @ return address
398398
.if \reload
399399
add r1, sp, #S_R0 + S_OFF @ pointer to regs
400-
ldmccia r1, {r0 - r6} @ reload r0-r6
401-
stmccia sp, {r4, r5} @ update stack arguments
400+
ldmiacc r1, {r0 - r6} @ reload r0-r6
401+
stmiacc sp, {r4, r5} @ update stack arguments
402402
.endif
403403
ldrcc pc, [\table, \nr, lsl #2] @ call sys_* routine
404404
#endif

‎arch/arm/lib/clear_user.S‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ UNWIND(.save {r1, lr})
4444
strusr r2, r0, 1, ne, rept=2
4545
tst r1, #1 @ x1 x0 x1 x0 x1 x0 x1
4646
it ne @ explicit IT needed for the label
47-
USER( strnebt r2, [r0])
47+
USER( strbtne r2, [r0])
4848
mov r0, #0
4949
ldmfd sp!, {r1, pc}
5050
UNWIND(.fnend)

‎arch/arm/lib/copy_page.S‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ ENTRY(copy_page)
3939
.endr
4040
subs r2, r2, #1 @ 1
4141
stmia r0!, {r3, r4, ip, lr} @ 4
42-
ldmgtia r1!, {r3, r4, ip, lr} @ 4
42+
ldmiagt r1!, {r3, r4, ip, lr} @ 4
4343
bgt 1b @ 1
44-
PLD( ldmeqia r1!, {r3, r4, ip, lr} )
44+
PLD( ldmiaeq r1!, {r3, r4, ip, lr} )
4545
PLD( beq 2b )
4646
ldmfd sp!, {r4, pc} @ 3
4747
ENDPROC(copy_page)

0 commit comments

Comments
 (0)