]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - arch/parisc/kernel/signal.c
[PARISC] Add sync required after fdc to enforce insn ordering
[linux-2.6.git] / arch / parisc / kernel / signal.c
index 55d71c15e1f7cebc25b68c9e9facb4c7fdfb69e4..6c905c128c2a20b884d4109f39b7729cbb6f229d 100644 (file)
@@ -32,7 +32,7 @@
 #include <asm/uaccess.h>
 #include <asm/pgalloc.h>
 #include <asm/cacheflush.h>
-#include <asm/offsets.h>
+#include <asm/asm-offsets.h>
 
 #ifdef CONFIG_COMPAT
 #include <linux/compat.h>
@@ -636,6 +636,7 @@ do_signal(sigset_t *oldset, struct pt_regs *regs, int in_syscall)
                        /* Stack is 64-byte aligned, and we only 
                         * need to flush 1 cache line */
                        asm("fdc 0(%%sr3, %0)\n"
+                           "sync\n"
                            "fic 0(%%sr3, %0)\n"
                            "sync\n"
                            : : "r"(regs->gr[30]));