From: David S. Miller Date: Thu, 22 Aug 2013 23:38:46 +0000 (-0700) Subject: sparc64: Fix off by one in trampoline TLB mapping installation loop. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=63d499662aeec1864ec36d042aca8184ea6a938e;p=openwrt%2Fstaging%2Fblogic.git sparc64: Fix off by one in trampoline TLB mapping installation loop. Reported-by: Kirill Tkhai Signed-off-by: David S. Miller --- diff --git a/arch/sparc/kernel/trampoline_64.S b/arch/sparc/kernel/trampoline_64.S index e0b1e13a0736..ad4bde3bb61e 100644 --- a/arch/sparc/kernel/trampoline_64.S +++ b/arch/sparc/kernel/trampoline_64.S @@ -129,7 +129,6 @@ startup_continue: clr %l5 sethi %hi(num_kernel_image_mappings), %l6 lduw [%l6 + %lo(num_kernel_image_mappings)], %l6 - add %l6, 1, %l6 mov 15, %l7 BRANCH_IF_ANY_CHEETAH(g1,g5,2f) @@ -222,7 +221,6 @@ niagara_lock_tlb: clr %l5 sethi %hi(num_kernel_image_mappings), %l6 lduw [%l6 + %lo(num_kernel_image_mappings)], %l6 - add %l6, 1, %l6 1: mov HV_FAST_MMU_MAP_PERM_ADDR, %o5