Browse Source

[SPARC64]: Fix typo in sun4v_patch().

Second instruction offset is '4' not '3'.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 19 years ago
parent
commit
fd05068d7b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      arch/sparc64/kernel/setup.c

+ 1 - 1
arch/sparc64/kernel/setup.c

@@ -583,7 +583,7 @@ static void __init sun4v_patch(void)
 		wmb();
 		__asm__ __volatile__("flush	%0" : : "r" (addr +  0));
 
-		*(unsigned int *) (addr +  3) = p2->insns[1];
+		*(unsigned int *) (addr +  4) = p2->insns[1];
 		wmb();
 		__asm__ __volatile__("flush	%0" : : "r" (addr +  4));