Commit 91313d60d8ad96fa79a833e55e8c13b56f893614

Authored by Grant Grundler
Committed by Kyle McMartin
1 parent 3aa0862ce7

[PARISC] Add sync required after fdc to enforce insn ordering

PA20 arch book (page 7-52 and 7-55) indicate a "sync" is required after
the FDC "to enforce instruction ordering". And we want to make
sure FIC is executed after FDC has retired.

Signed-off-by: Grant Grundler <grundler@parisc-linux.org>

Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

arch/parisc/kernel/signal.c
... ... @@ -636,6 +636,7 @@
636 636 /* Stack is 64-byte aligned, and we only
637 637 * need to flush 1 cache line */
638 638 asm("fdc 0(%%sr3, %0)\n"
  639 + "sync\n"
639 640 "fic 0(%%sr3, %0)\n"
640 641 "sync\n"
641 642 : : "r"(regs->gr[30]));