From: David S. Miller Date: Sat, 11 Feb 2006 19:05:52 +0000 (-0800) Subject: [SPARC64]: Fix typo in sun4v_patch(). X-Git-Tag: v2.6.17-rc1~1184^2~151 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd05068d7b22b64211f9202aa67ad44b51d44242;p=platform%2Fupstream%2Fkernel-adaptation-pc.git [SPARC64]: Fix typo in sun4v_patch(). Second instruction offset is '4' not '3'. Signed-off-by: David S. Miller --- diff --git a/arch/sparc64/kernel/setup.c b/arch/sparc64/kernel/setup.c index cec921f..f36b257 100644 --- a/arch/sparc64/kernel/setup.c +++ b/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));