Skip to content

Commit

Permalink
sparc32: fix cpuid_patch run-time patching
Browse files Browse the repository at this point in the history
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Sam Ravnborg authored and David S. Miller committed May 20, 2012
1 parent 8578149 commit 9cd5f82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/sparc/kernel/setup_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 9cd5f82

Please sign in to comment.