]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sparc: Handle negative offsets in arch_jump_label_transform
authorJames Clarke <jrtc27@jrtc27.com>
Mon, 24 Oct 2016 18:49:25 +0000 (19:49 +0100)
committerJiri Slaby <jslaby@suse.cz>
Mon, 28 Nov 2016 21:22:42 +0000 (22:22 +0100)
commit6d6262c596094fc880e2825cfc66a3fdbcabf8e7
tree913a8f039759c94bbbd8dc99ae4c78e905c3c817
parent2f9cb54022b8599ce8b3ffcdc8a54437bd647985
sparc: Handle negative offsets in arch_jump_label_transform

[ Upstream commit 9d9fa230206a3aea6ef451646c97122f04777983 ]

Additionally, if the offset will overflow the immediate for a ba,pt
instruction, fall back on a standard ba to get an extra 3 bits.

Signed-off-by: James Clarke <jrtc27@jrtc27.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/sparc/kernel/jump_label.c