Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 85547
b: refs/heads/master
c: f1f8926
h: refs/heads/master
i:
  85545: fbe3ce7
  85543: 09f684b
v: v3
  • Loading branch information
Paul Mundt committed Feb 14, 2008
1 parent 6d898b4 commit cd8d540
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5e9c8ac5699f2a830fab2c224b6f57bd7da338b8
refs/heads/master: f1f8926a94132e6433b559a3eced65404226f5cd
8 changes: 5 additions & 3 deletions trunk/arch/sh/mm/cache-sh5.c
Original file line number Diff line number Diff line change
Expand Up @@ -1015,15 +1015,17 @@ void flush_icache_user_range(struct vm_area_struct *vma,
ARCH/SH64 PRIVATE CALLABLE API.
##########################################################################*/

void flush_cache_sigtramp(unsigned long start, unsigned long end)
void flush_cache_sigtramp(unsigned long vaddr)
{
unsigned long end = vaddr + L1_CACHE_BYTES;

/* For the address range [start,end), write back the data from the
D-cache and invalidate the corresponding region of the I-cache for
the current process. Used to flush signal trampolines on the stack
to make them executable. */

sh64_dcache_wback_current_user_range(start, end);
sh64_dcache_wback_current_user_range(vaddr, end);
wmb();
sh64_icache_inv_current_user_range(start, end);
sh64_icache_inv_current_user_range(vaddr, end);
}

2 changes: 1 addition & 1 deletion trunk/include/asm-sh/cpu-sh5/cacheflush.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ struct mm_struct;

extern void flush_cache_all(void);
extern void flush_cache_mm(struct mm_struct *mm);
extern void flush_cache_sigtramp(unsigned long start, unsigned long end);
extern void flush_cache_sigtramp(unsigned long vaddr);
extern void flush_cache_range(struct vm_area_struct *vma, unsigned long start,
unsigned long end);
extern void flush_cache_page(struct vm_area_struct *vma, unsigned long addr, unsigned long pfn);
Expand Down

0 comments on commit cd8d540

Please sign in to comment.