aboutsummaryrefslogtreecommitdiff
path: root/arch/sparc64/lib/NGpatch.S
diff options
context:
space:
mode:
Diffstat (limited to 'arch/sparc64/lib/NGpatch.S')
-rw-r--r--arch/sparc64/lib/NGpatch.S3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sparc64/lib/NGpatch.S b/arch/sparc64/lib/NGpatch.S
index f13ec9e4c8a..3b0674fc336 100644
--- a/arch/sparc64/lib/NGpatch.S
+++ b/arch/sparc64/lib/NGpatch.S
@@ -12,7 +12,8 @@
or %g2, %lo(OLD), %g2; \
sub %g1, %g2, %g1; \
sethi %hi(BRANCH_ALWAYS), %g3; \
- srl %g1, 2, %g1; \
+ sll %g1, 11, %g1; \
+ srl %g1, 11 + 2, %g1; \
or %g3, %lo(BRANCH_ALWAYS), %g3; \
or %g3, %g1, %g3; \
stw %g3, [%g2]; \