Skip to content

Commit bbbfde7

Browse files
danglin44hdeller
authored andcommitted
parisc: use long branch in fork_like macro
The "b" branch instruction used in the fork_like macro only can handle 17-bit pc-relative offsets. This fails with an out of range offset with some .config files. Rewrite to use the "be" instruction which can branch to any address in a space. Signed-off-by: John David Anglin <dave.anglin@bell.net> Signed-off-by: Helge Deller <deller@gmx.de>
1 parent 93782eb commit bbbfde7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎arch/parisc/kernel/entry.S‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1702,7 +1702,8 @@ ENTRY(sys_\name\()_wrapper)
17021702
ldo TASK_REGS(%r1),%r1
17031703
reg_save %r1
17041704
mfctl %cr27, %r28
1705-
b sys_\name
1705+
ldil L%sys_\name, %r31
1706+
be R%sys_\name(%sr4,%r31)
17061707
STREG %r28, PT_CR27(%r1)
17071708
ENDPROC(sys_\name\()_wrapper)
17081709
.endm

0 commit comments

Comments
 (0)