[PATCH] parisc: Use BL macro instead of b instruction to branch to do_cpu_irq_mask

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The b branch instruction only supports a 17-bit pc-relative offset. The BL macro provides for a 22-bit call offset on PA 2.0 targets. This reduces the chance that do_cpu_irq_mask will not be reachable.

Signed-off-by: John David Anglin  <dave.anglin@xxxxxxxx>
---

diff --git a/arch/parisc/kernel/entry.S b/arch/parisc/kernel/entry.S
index f33201b..bd7bec3 100644
@@ -972,14 +977,13 @@ intr_extint:
 	copy	%r29, %r26	/* arg0 is pt_regs */
 	copy	%r29, %r16	/* save pt_regs */
 
-	ldil	L%intr_return, %r2
-
 #ifdef CONFIG_64BIT
 	ldo	-16(%r30),%r29	/* Reference param save area */
 #endif
 
-	b	do_cpu_irq_mask
-	ldo	R%intr_return(%r2), %r2	/* return to intr_return, not here */
+	ldil	L%intr_return, %r1
+	BL	do_cpu_irq_mask, %r2
+	ldo	R%intr_return(%r1), %r2 /* return to intr_return, not here */
 ENDPROC(syscall_exit_rfi)
 
 


--
John David Anglin	dave.anglin@xxxxxxxx


[Index of Archives]     [Linux SoC]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux