| Submitter | Sam Ravnborg |
|---|---|
| Date | May 20, 2012, 3:31 p.m. |
| Message ID | <20120520153140.GA13857@merkur.ravnborg.org> |
| Download | mbox | patch |
| Permalink | /patch/160267/ |
| State | Accepted |
| Delegated to: | David Miller |
| Headers | show |
Comments
From: Sam Ravnborg <sam@ravnborg.org> Date: Sun, 20 May 2012 17:31:40 +0200 >>From eecbbe31067e738d4342dee9709f14086cd4fbad Mon Sep 17 00:00:00 2001 > From: Sam Ravnborg <sam@ravnborg.org> > Date: Sun, 20 May 2012 17:24:20 +0200 > Subject: [PATCH 1/2] sparc32: fix cpuid_patch run-time patching > > We hang forever when trying to do run-time patching of instructions > identified by the cpuid_patch section > > Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Yikes, good catch, applied. -- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Patch
diff --git a/arch/sparc/kernel/setup_32.c b/arch/sparc/kernel/setup_32.c index 635df5c..d65b5a1 100644 --- a/arch/sparc/kernel/setup_32.c +++ b/arch/sparc/kernel/setup_32.c @@ -229,6 +229,8 @@ static void __init per_cpu_patch(void) *(unsigned int *) (addr + 0) = insns[0]; *(unsigned int *) (addr + 4) = insns[1]; *(unsigned int *) (addr + 8) = insns[2]; + + p++; } #ifdef CONFIG_SMP local_ops->cache_all();