diff options
author | Stefan Agner <stefan@agner.ch> | 2019-02-17 18:56:58 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2019-02-26 06:26:06 -0500 |
commit | c001899a5d6c2d7a0f3b75b2307ddef137fb46a6 (patch) | |
tree | d616a4295c0697ebae7be453ca39af5e7ceb36b3 | |
parent | a216376add730ec86a8bcee5735f62fd890cb2d0 (diff) |
ARM: 8843/1: use unified assembler in headers
Use unified assembler syntax (UAL) in headers. 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>
-rw-r--r-- | arch/arm/include/asm/assembler.h | 12 | ||||
-rw-r--r-- | arch/arm/include/asm/vfpmacros.h | 8 | ||||
-rw-r--r-- | arch/arm/lib/bitops.h | 8 |
3 files changed, 14 insertions, 14 deletions
diff --git a/arch/arm/include/asm/assembler.h b/arch/arm/include/asm/assembler.h index 28a48e0d4cca..b59921a560da 100644 --- a/arch/arm/include/asm/assembler.h +++ b/arch/arm/include/asm/assembler.h | |||
@@ -376,9 +376,9 @@ THUMB( orr \reg , \reg , #PSR_T_BIT ) | |||
376 | .macro usraccoff, instr, reg, ptr, inc, off, cond, abort, t=TUSER() | 376 | .macro usraccoff, instr, reg, ptr, inc, off, cond, abort, t=TUSER() |
377 | 9999: | 377 | 9999: |
378 | .if \inc == 1 | 378 | .if \inc == 1 |
379 | \instr\cond\()b\()\t\().w \reg, [\ptr, #\off] | 379 | \instr\()b\t\cond\().w \reg, [\ptr, #\off] |
380 | .elseif \inc == 4 | 380 | .elseif \inc == 4 |
381 | \instr\cond\()\t\().w \reg, [\ptr, #\off] | 381 | \instr\t\cond\().w \reg, [\ptr, #\off] |
382 | .else | 382 | .else |
383 | .error "Unsupported inc macro argument" | 383 | .error "Unsupported inc macro argument" |
384 | .endif | 384 | .endif |
@@ -417,9 +417,9 @@ THUMB( orr \reg , \reg , #PSR_T_BIT ) | |||
417 | .rept \rept | 417 | .rept \rept |
418 | 9999: | 418 | 9999: |
419 | .if \inc == 1 | 419 | .if \inc == 1 |
420 | \instr\cond\()b\()\t \reg, [\ptr], #\inc | 420 | \instr\()b\t\cond \reg, [\ptr], #\inc |
421 | .elseif \inc == 4 | 421 | .elseif \inc == 4 |
422 | \instr\cond\()\t \reg, [\ptr], #\inc | 422 | \instr\t\cond \reg, [\ptr], #\inc |
423 | .else | 423 | .else |
424 | .error "Unsupported inc macro argument" | 424 | .error "Unsupported inc macro argument" |
425 | .endif | 425 | .endif |
@@ -460,7 +460,7 @@ THUMB( orr \reg , \reg , #PSR_T_BIT ) | |||
460 | .macro check_uaccess, addr:req, size:req, limit:req, tmp:req, bad:req | 460 | .macro check_uaccess, addr:req, size:req, limit:req, tmp:req, bad:req |
461 | #ifndef CONFIG_CPU_USE_DOMAINS | 461 | #ifndef CONFIG_CPU_USE_DOMAINS |
462 | adds \tmp, \addr, #\size - 1 | 462 | adds \tmp, \addr, #\size - 1 |
463 | sbcccs \tmp, \tmp, \limit | 463 | sbcscc \tmp, \tmp, \limit |
464 | bcs \bad | 464 | bcs \bad |
465 | #ifdef CONFIG_CPU_SPECTRE | 465 | #ifdef CONFIG_CPU_SPECTRE |
466 | movcs \addr, #0 | 466 | movcs \addr, #0 |
@@ -474,7 +474,7 @@ THUMB( orr \reg , \reg , #PSR_T_BIT ) | |||
474 | sub \tmp, \limit, #1 | 474 | sub \tmp, \limit, #1 |
475 | subs \tmp, \tmp, \addr @ tmp = limit - 1 - addr | 475 | subs \tmp, \tmp, \addr @ tmp = limit - 1 - addr |
476 | addhs \tmp, \tmp, #1 @ if (tmp >= 0) { | 476 | addhs \tmp, \tmp, #1 @ if (tmp >= 0) { |
477 | subhss \tmp, \tmp, \size @ tmp = limit - (addr + size) } | 477 | subshs \tmp, \tmp, \size @ tmp = limit - (addr + size) } |
478 | movlo \addr, #0 @ if (tmp < 0) addr = NULL | 478 | movlo \addr, #0 @ if (tmp < 0) addr = NULL |
479 | csdb | 479 | csdb |
480 | #endif | 480 | #endif |
diff --git a/arch/arm/include/asm/vfpmacros.h b/arch/arm/include/asm/vfpmacros.h index ef5dfedacd8d..628c336e8e3b 100644 --- a/arch/arm/include/asm/vfpmacros.h +++ b/arch/arm/include/asm/vfpmacros.h | |||
@@ -29,13 +29,13 @@ | |||
29 | ldr \tmp, =elf_hwcap @ may not have MVFR regs | 29 | ldr \tmp, =elf_hwcap @ may not have MVFR regs |
30 | ldr \tmp, [\tmp, #0] | 30 | ldr \tmp, [\tmp, #0] |
31 | tst \tmp, #HWCAP_VFPD32 | 31 | tst \tmp, #HWCAP_VFPD32 |
32 | ldcnel p11, cr0, [\base],#32*4 @ FLDMIAD \base!, {d16-d31} | 32 | ldclne p11, cr0, [\base],#32*4 @ FLDMIAD \base!, {d16-d31} |
33 | addeq \base, \base, #32*4 @ step over unused register space | 33 | addeq \base, \base, #32*4 @ step over unused register space |
34 | #else | 34 | #else |
35 | VFPFMRX \tmp, MVFR0 @ Media and VFP Feature Register 0 | 35 | VFPFMRX \tmp, MVFR0 @ Media and VFP Feature Register 0 |
36 | and \tmp, \tmp, #MVFR0_A_SIMD_MASK @ A_SIMD field | 36 | and \tmp, \tmp, #MVFR0_A_SIMD_MASK @ A_SIMD field |
37 | cmp \tmp, #2 @ 32 x 64bit registers? | 37 | cmp \tmp, #2 @ 32 x 64bit registers? |
38 | ldceql p11, cr0, [\base],#32*4 @ FLDMIAD \base!, {d16-d31} | 38 | ldcleq p11, cr0, [\base],#32*4 @ FLDMIAD \base!, {d16-d31} |
39 | addne \base, \base, #32*4 @ step over unused register space | 39 | addne \base, \base, #32*4 @ step over unused register space |
40 | #endif | 40 | #endif |
41 | #endif | 41 | #endif |
@@ -53,13 +53,13 @@ | |||
53 | ldr \tmp, =elf_hwcap @ may not have MVFR regs | 53 | ldr \tmp, =elf_hwcap @ may not have MVFR regs |
54 | ldr \tmp, [\tmp, #0] | 54 | ldr \tmp, [\tmp, #0] |
55 | tst \tmp, #HWCAP_VFPD32 | 55 | tst \tmp, #HWCAP_VFPD32 |
56 | stcnel p11, cr0, [\base],#32*4 @ FSTMIAD \base!, {d16-d31} | 56 | stclne p11, cr0, [\base],#32*4 @ FSTMIAD \base!, {d16-d31} |
57 | addeq \base, \base, #32*4 @ step over unused register space | 57 | addeq \base, \base, #32*4 @ step over unused register space |
58 | #else | 58 | #else |
59 | VFPFMRX \tmp, MVFR0 @ Media and VFP Feature Register 0 | 59 | VFPFMRX \tmp, MVFR0 @ Media and VFP Feature Register 0 |
60 | and \tmp, \tmp, #MVFR0_A_SIMD_MASK @ A_SIMD field | 60 | and \tmp, \tmp, #MVFR0_A_SIMD_MASK @ A_SIMD field |
61 | cmp \tmp, #2 @ 32 x 64bit registers? | 61 | cmp \tmp, #2 @ 32 x 64bit registers? |
62 | stceql p11, cr0, [\base],#32*4 @ FSTMIAD \base!, {d16-d31} | 62 | stcleq p11, cr0, [\base],#32*4 @ FSTMIAD \base!, {d16-d31} |
63 | addne \base, \base, #32*4 @ step over unused register space | 63 | addne \base, \base, #32*4 @ step over unused register space |
64 | #endif | 64 | #endif |
65 | #endif | 65 | #endif |
diff --git a/arch/arm/lib/bitops.h b/arch/arm/lib/bitops.h index 93cddab73072..95bd35991288 100644 --- a/arch/arm/lib/bitops.h +++ b/arch/arm/lib/bitops.h | |||
@@ -7,7 +7,7 @@ | |||
7 | ENTRY( \name ) | 7 | ENTRY( \name ) |
8 | UNWIND( .fnstart ) | 8 | UNWIND( .fnstart ) |
9 | ands ip, r1, #3 | 9 | ands ip, r1, #3 |
10 | strneb r1, [ip] @ assert word-aligned | 10 | strbne r1, [ip] @ assert word-aligned |
11 | mov r2, #1 | 11 | mov r2, #1 |
12 | and r3, r0, #31 @ Get bit offset | 12 | and r3, r0, #31 @ Get bit offset |
13 | mov r0, r0, lsr #5 | 13 | mov r0, r0, lsr #5 |
@@ -32,7 +32,7 @@ ENDPROC(\name ) | |||
32 | ENTRY( \name ) | 32 | ENTRY( \name ) |
33 | UNWIND( .fnstart ) | 33 | UNWIND( .fnstart ) |
34 | ands ip, r1, #3 | 34 | ands ip, r1, #3 |
35 | strneb r1, [ip] @ assert word-aligned | 35 | strbne r1, [ip] @ assert word-aligned |
36 | mov r2, #1 | 36 | mov r2, #1 |
37 | and r3, r0, #31 @ Get bit offset | 37 | and r3, r0, #31 @ Get bit offset |
38 | mov r0, r0, lsr #5 | 38 | mov r0, r0, lsr #5 |
@@ -62,7 +62,7 @@ ENDPROC(\name ) | |||
62 | ENTRY( \name ) | 62 | ENTRY( \name ) |
63 | UNWIND( .fnstart ) | 63 | UNWIND( .fnstart ) |
64 | ands ip, r1, #3 | 64 | ands ip, r1, #3 |
65 | strneb r1, [ip] @ assert word-aligned | 65 | strbne r1, [ip] @ assert word-aligned |
66 | and r2, r0, #31 | 66 | and r2, r0, #31 |
67 | mov r0, r0, lsr #5 | 67 | mov r0, r0, lsr #5 |
68 | mov r3, #1 | 68 | mov r3, #1 |
@@ -89,7 +89,7 @@ ENDPROC(\name ) | |||
89 | ENTRY( \name ) | 89 | ENTRY( \name ) |
90 | UNWIND( .fnstart ) | 90 | UNWIND( .fnstart ) |
91 | ands ip, r1, #3 | 91 | ands ip, r1, #3 |
92 | strneb r1, [ip] @ assert word-aligned | 92 | strbne r1, [ip] @ assert word-aligned |
93 | and r3, r0, #31 | 93 | and r3, r0, #31 |
94 | mov r0, r0, lsr #5 | 94 | mov r0, r0, lsr #5 |
95 | save_and_disable_irqs ip | 95 | save_and_disable_irqs ip |