]> err.no Git - linux-2.6/commitdiff
[ARM] Remove RETINSTR macro
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Sun, 25 Jun 2006 10:17:23 +0000 (11:17 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 25 Jun 2006 10:17:23 +0000 (11:17 +0100)
RETINSTR is a left-over from the days when we had 26-bit and
32-bit CPU support integrated into the same tree.  Since this
is no longer the case, we can now remove RETINSTR.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/entry-common.S
arch/arm/lib/delay.S
arch/arm/lib/findbit.S
arch/arm/lib/io-readsw-armv3.S
arch/arm/lib/io-writesw-armv3.S
arch/arm/lib/memchr.S
arch/arm/lib/memset.S
arch/arm/lib/memzero.S
arch/arm/lib/strchr.S
arch/arm/lib/strrchr.S
include/asm-arm/assembler.h

index b5bcebca1cd65ed9abaecf520a97eea535752564..75af6d6e2f28df15e50847f76c59786a949ff7a3 100644 (file)
@@ -340,7 +340,7 @@ sys_mmap2:
                streq   r5, [sp, #4]
                beq     do_mmap2
                mov     r0, #-EINVAL
-               RETINSTR(mov,pc, lr)
+               mov     pc, lr
 #else
                str     r5, [sp, #4]
                b       do_mmap2
index 9183b06c0e2f2a77499db21f05205d0bb6907dfe..930a7025922077a0b1da5cb048bdc4041bbceed0 100644 (file)
@@ -31,7 +31,7 @@ ENTRY(__const_udelay)                         @ 0 <= r0 <= 0x7fffff06
                mov     r2, r2, lsr #10         @ max = 0x00007fff
                mul     r0, r2, r0              @ max = 2^32-1
                movs    r0, r0, lsr #6
-               RETINSTR(moveq,pc,lr)
+               moveq   pc, lr
 
 /*
  * loops = r0 * HZ * loops_per_jiffy / 1000000
@@ -43,20 +43,20 @@ ENTRY(__const_udelay)                               @ 0 <= r0 <= 0x7fffff06
 ENTRY(__delay)
                subs    r0, r0, #1
 #if 0
-               RETINSTR(movls,pc,lr)
+               movls   pc, lr
                subs    r0, r0, #1
-               RETINSTR(movls,pc,lr)
+               movls   pc, lr
                subs    r0, r0, #1
-               RETINSTR(movls,pc,lr)
+               movls   pc, lr
                subs    r0, r0, #1
-               RETINSTR(movls,pc,lr)
+               movls   pc, lr
                subs    r0, r0, #1
-               RETINSTR(movls,pc,lr)
+               movls   pc, lr
                subs    r0, r0, #1
-               RETINSTR(movls,pc,lr)
+               movls   pc, lr
                subs    r0, r0, #1
-               RETINSTR(movls,pc,lr)
+               movls   pc, lr
                subs    r0, r0, #1
 #endif
                bhi     __delay
-               RETINSTR(mov,pc,lr)
+               mov     pc, lr
index 6f8e27a58c7804d7e3b903b15d0a2186aecb781c..a5ca0248aa4e01a1e11ec1de7a935dba9f5a64ec 100644 (file)
@@ -32,7 +32,7 @@ ENTRY(_find_first_zero_bit_le)
 2:             cmp     r2, r1                  @ any more?
                blo     1b
 3:             mov     r0, r1                  @ no free bits
-               RETINSTR(mov,pc,lr)
+               mov     pc, lr
 
 /*
  * Purpose  : Find next 'zero' bit
@@ -66,7 +66,7 @@ ENTRY(_find_first_bit_le)
 2:             cmp     r2, r1                  @ any more?
                blo     1b
 3:             mov     r0, r1                  @ no free bits
-               RETINSTR(mov,pc,lr)
+               mov     pc, lr
 
 /*
  * Purpose  : Find next 'one' bit
@@ -98,7 +98,7 @@ ENTRY(_find_first_zero_bit_be)
 2:             cmp     r2, r1                  @ any more?
                blo     1b
 3:             mov     r0, r1                  @ no free bits
-               RETINSTR(mov,pc,lr)
+               mov     pc, lr
 
 ENTRY(_find_next_zero_bit_be)
                teq     r1, #0
@@ -126,7 +126,7 @@ ENTRY(_find_first_bit_be)
 2:             cmp     r2, r1                  @ any more?
                blo     1b
 3:             mov     r0, r1                  @ no free bits
-               RETINSTR(mov,pc,lr)
+               mov     pc, lr
 
 ENTRY(_find_next_bit_be)
                teq     r1, #0
@@ -164,5 +164,5 @@ ENTRY(_find_next_bit_be)
                addeq   r2, r2, #1
                mov     r0, r2
 #endif
-               RETINSTR(mov,pc,lr)
+               mov     pc, lr
 
index 146d47c154551801ff0624623163c6327b8d32f1..2639983219b9f383523c959611f1c4a159e4c820 100644 (file)
@@ -28,7 +28,7 @@
                strb    r3, [r1], #1
 
                subs    r2, r2, #1
-               RETINSTR(moveq, pc, lr)
+               moveq   pc, lr
 
 ENTRY(__raw_readsw)
                teq     r2, #0          @ do we have to check for the zero len?
index 52d62b4812958d49d308e64e5674ddb53bb89fd2..c421f92eeb27458f4dca059b2974fdb22ff2ac47 100644 (file)
@@ -29,7 +29,7 @@
                orr     r3, r3, r3, lsl #16
                str     r3, [r0]
                subs    r2, r2, #1
-               RETINSTR(moveq, pc, lr)
+               moveq   pc, lr
 
 ENTRY(__raw_writesw)
                teq     r2, #0          @ do we have to check for the zero len?
index ac34fe55d21a1d999141f8debf446989e68dffd8..e7ab1ea8ebaa5aa5bf5a213c2cefedfe3410b5b1 100644 (file)
@@ -22,4 +22,4 @@ ENTRY(memchr)
        bne     1b
        sub     r0, r0, #1
 2:     movne   r0, #0
-       RETINSTR(mov,pc,lr)
+       mov     pc, lr
index a1795f599937f275eee439399ac6a824e4bba401..69e7c31f33818492972c8c1c28bb7286ae08e910 100644 (file)
@@ -77,4 +77,4 @@ ENTRY(memset)
        strneb  r1, [r0], #1
        tst     r2, #1
        strneb  r1, [r0], #1
-       RETINSTR(mov,pc,lr)
+       mov     pc, lr
index 51ccc60160fd5fc7157d5cfd29c5d472459bf345..764e7de8bbab74cb7d027017763b628b9733984a 100644 (file)
@@ -77,4 +77,4 @@ ENTRY(__memzero)
        strneb  r2, [r0], #1            @ 1
        tst     r1, #1                  @ 1 a byte left over
        strneb  r2, [r0], #1            @ 1
-       RETINSTR(mov,pc,lr)             @ 1
+       mov     pc, lr                  @ 1
index 5b9b493733fc4090e06d23e835a55b731cd7e445..9f18d6fdee6a9fddfd376e2637c82541747539ec 100644 (file)
@@ -23,4 +23,4 @@ ENTRY(strchr)
                teq     r2, r1
                movne   r0, #0
                subeq   r0, r0, #1
-               RETINSTR(mov,pc,lr)
+               mov     pc, lr
index fa923f026f151dfa381590c09deffac93d25daf6..538df220aa48e5b827263b68034f433f7cd970d1 100644 (file)
@@ -22,4 +22,4 @@ ENTRY(strrchr)
                teq     r2, #0
                bne     1b
                mov     r0, r3
-               RETINSTR(mov,pc,lr)
+               mov     pc, lr
index d53bafa9bf1c58f80fffdb2910571d3544340e1d..930dd905f1eb58c28313993062cd3a55ff8424d1 100644 (file)
        ldm/**/cond     base,reglist
 #endif
 
-/*
- * Build a return instruction for this processor type.
- */
-#define RETINSTR(instr, regs...)\
-       instr   regs
-
 /*
  * Enable and disable interrupts
  */