Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21380
b: refs/heads/master
c: 840aaef
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Mar 20, 2006
1 parent 77ade0f commit 6ee571c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 45fec05f805a113372c9a7ff4c653ac749f6921c
refs/heads/master: 840aaef8db32572b6d11e0d5cb5e6efcbc812000
7 changes: 7 additions & 0 deletions trunk/arch/sparc64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -529,15 +529,19 @@ static void __init per_cpu_patch(void)
};

*(unsigned int *) (addr + 0) = insns[0];
wmb();
__asm__ __volatile__("flush %0" : : "r" (addr + 0));

*(unsigned int *) (addr + 4) = insns[1];
wmb();
__asm__ __volatile__("flush %0" : : "r" (addr + 4));

*(unsigned int *) (addr + 8) = insns[2];
wmb();
__asm__ __volatile__("flush %0" : : "r" (addr + 8));

*(unsigned int *) (addr + 12) = insns[3];
wmb();
__asm__ __volatile__("flush %0" : : "r" (addr + 12));

p++;
Expand All @@ -558,6 +562,7 @@ static void __init gl_patch(void)
unsigned long addr = p1->addr;

*(unsigned int *) (addr + 0) = p1->insn;
wmb();
__asm__ __volatile__("flush %0" : : "r" (addr + 0));

p1++;
Expand All @@ -568,9 +573,11 @@ static void __init gl_patch(void)
unsigned long addr = p2->addr;

*(unsigned int *) (addr + 0) = p2->insns[0];
wmb();
__asm__ __volatile__("flush %0" : : "r" (addr + 0));

*(unsigned int *) (addr + 3) = p2->insns[1];
wmb();
__asm__ __volatile__("flush %0" : : "r" (addr + 4));

p2++;
Expand Down

0 comments on commit 6ee571c

Please sign in to comment.