summaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel/ptrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/kernel/ptrace.c')
-rw-r--r--arch/mips/kernel/ptrace.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/kernel/ptrace.c b/arch/mips/kernel/ptrace.c
index 4112c0006..f9172b726 100644
--- a/arch/mips/kernel/ptrace.c
+++ b/arch/mips/kernel/ptrace.c
@@ -68,6 +68,7 @@ repeat:
*/
flush_cache_all();
retval = *(unsigned long *) page;
+ flush_cache_all(); /* VCED avoidance */
return retval;
}
@@ -122,10 +123,10 @@ repeat:
}
/* This is a hack for non-kernel-mapped video buffers and similar */
if (MAP_NR(page) < MAP_NR(high_memory))
- flush_cache_page(vma, addr);
+ flush_cache_all();
*(unsigned long *) (page + (addr & ~PAGE_MASK)) = data;
if (MAP_NR(page) < MAP_NR(high_memory))
- flush_page_to_ram(page);
+ flush_cache_all();
/*
* We're bypassing pagetables, so we have to set the dirty bit
* ourselves this should also re-instate whatever read-only mode