m32r: build fix of entry.S
authorHirokazu Takata <takata@linux-m32r.org>
Tue, 21 Aug 2007 03:04:29 +0000 (12:04 +0900)
committerHirokazu Takata <takata@linux-m32r.org>
Thu, 6 Sep 2007 02:09:20 +0000 (11:09 +0900)
This patch fixes the following compile error:
<--  snip  -->
 ...
  AS      arch/m32r/kernel/entry.o
/home/bunk/linux/kernel-2.6/linux-2.6.23-rc3-mm1/arch/m32r/kernel/entry.S: Assembler messages:
/home/bunk/linux/kernel-2.6/linux-2.6.23-rc3-mm1/arch/m32r/kernel/entry.S:358: Error: bad instruction `addi r0,#(((((0)+(64))+(32))+(32)))'
make[2]: *** [arch/m32r/kernel/entry.o] Error 1
<--  snip  -->

Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
Cc: Adrian Bunk <bunk@kernel.org>
arch/m32r/kernel/entry.S

index c46cfaa763c30ee9c4a79f1b2caf67ad123aeac1..42b08bfd46fe939b2b882d97e6d4a9af15044a49 100644 (file)
@@ -355,7 +355,7 @@ ENTRY(ei_handler)
        lduh    r0, @(low(M32R_INT0ICU_ISTS),r0)        ; bit10-6 : ISN
        slli    r0, #21
        srli    r0, #27                         ; ISN
-       addi    r0, #(M32R_INT0ICU_IRQ_BASE)
+       add3    r0, r0, #(M32R_INT0ICU_IRQ_BASE)
        bra     check_end
        .fillinsn
 4:
@@ -367,7 +367,7 @@ ENTRY(ei_handler)
        lduh    r0, @(low(M32R_INT2ICU_ISTS),r0)        ; bit10-6 : ISN
        slli    r0, #21
        srli    r0, #27                         ; ISN
-       addi    r0, #(M32R_INT2ICU_IRQ_BASE)
+       add3    r0, r0, #(M32R_INT2ICU_IRQ_BASE)
        ; bra   check_end
        .fillinsn
 5: