Skip to content

Commit a216376

Browse files
agnersRussell King
authored andcommitted
ARM: 8841/1: use unified assembler in macros
Use unified assembler syntax (UAL) in macros. 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 2894170 commit a216376

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

arch/arm/lib/copy_from_user.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
.endm
9292

9393
.macro str1b ptr reg cond=al abort
94-
str\cond\()b \reg, [\ptr], #1
94+
strb\cond \reg, [\ptr], #1
9595
.endm
9696

9797
.macro enter reg1 reg2

arch/arm/lib/copy_to_user.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
.endm
5050

5151
.macro ldr1b ptr reg cond=al abort
52-
ldr\cond\()b \reg, [\ptr], #1
52+
ldrb\cond \reg, [\ptr], #1
5353
.endm
5454

5555
#ifdef CONFIG_CPU_USE_DOMAINS

arch/arm/lib/memcpy.S

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
.endm
3131

3232
.macro ldr1b ptr reg cond=al abort
33-
ldr\cond\()b \reg, [\ptr], #1
33+
ldrb\cond \reg, [\ptr], #1
3434
.endm
3535

3636
.macro str1w ptr reg abort
@@ -42,7 +42,7 @@
4242
.endm
4343

4444
.macro str1b ptr reg cond=al abort
45-
str\cond\()b \reg, [\ptr], #1
45+
strb\cond \reg, [\ptr], #1
4646
.endm
4747

4848
.macro enter reg1 reg2

0 commit comments

Comments
 (0)