aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-02-12 03:00:39 -0500
committerPaul Mundt <lethal@linux-sh.org>2008-02-14 00:22:11 -0500
commitf1f8926a94132e6433b559a3eced65404226f5cd (patch)
tree2587a41aef692f7d4f7d83af64254ae84fb71883 /arch/sh
parent5e9c8ac5699f2a830fab2c224b6f57bd7da338b8 (diff)
sh: Update SH-5 flush_cache_sigtramp() for API changes.
Previously this took an explicit range, update this to use the same behaviour as the rest of the SH parts where we simply flush out a line from the start address. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/mm/cache-sh5.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/sh/mm/cache-sh5.c b/arch/sh/mm/cache-sh5.c
index 4617e3aeee73..5d1f615fe525 100644
--- a/arch/sh/mm/cache-sh5.c
+++ b/arch/sh/mm/cache-sh5.c
@@ -1015,15 +1015,17 @@ void flush_icache_user_range(struct vm_area_struct *vma,
1015 ARCH/SH64 PRIVATE CALLABLE API. 1015 ARCH/SH64 PRIVATE CALLABLE API.
1016 ##########################################################################*/ 1016 ##########################################################################*/
1017 1017
1018void flush_cache_sigtramp(unsigned long start, unsigned long end) 1018void flush_cache_sigtramp(unsigned long vaddr)
1019{ 1019{
1020 unsigned long end = vaddr + L1_CACHE_BYTES;
1021
1020 /* For the address range [start,end), write back the data from the 1022 /* For the address range [start,end), write back the data from the
1021 D-cache and invalidate the corresponding region of the I-cache for 1023 D-cache and invalidate the corresponding region of the I-cache for
1022 the current process. Used to flush signal trampolines on the stack 1024 the current process. Used to flush signal trampolines on the stack
1023 to make them executable. */ 1025 to make them executable. */
1024 1026
1025 sh64_dcache_wback_current_user_range(start, end); 1027 sh64_dcache_wback_current_user_range(vaddr, end);
1026 wmb(); 1028 wmb();
1027 sh64_icache_inv_current_user_range(start, end); 1029 sh64_icache_inv_current_user_range(vaddr, end);
1028} 1030}
1029 1031