OpenWrt – Blame information for rev 4
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
4 | office | 1 | From: Wolfram Joost <dbox2@frokaschwei.de> |
2 | Subject: [PATCH] fork_cacheflush |
||
3 | |||
4 | On ASUS WL-500gP there are many unexpected "Segmentation fault"s that |
||
5 | seem to be caused by a kernel. They can be avoided by: |
||
6 | 1) Disabling highpage |
||
7 | 2) Using flush_cache_mm in flush_cache_dup_mm |
||
8 | |||
9 | For details see OpenWrt ticket #2035 https://dev.openwrt.org/ticket/2035 |
||
10 | --- |
||
11 | --- a/arch/mips/include/asm/cacheflush.h |
||
12 | +++ b/arch/mips/include/asm/cacheflush.h |
||
13 | @@ -47,7 +47,7 @@ |
||
14 | extern void (*flush_cache_all)(void); |
||
15 | extern void (*__flush_cache_all)(void); |
||
16 | extern void (*flush_cache_mm)(struct mm_struct *mm); |
||
17 | -#define flush_cache_dup_mm(mm) do { (void) (mm); } while (0) |
||
18 | +#define flush_cache_dup_mm(mm) flush_cache_mm(mm) |
||
19 | extern void (*flush_cache_range)(struct vm_area_struct *vma, |
||
20 | unsigned long start, unsigned long end); |
||
21 | extern void (*flush_cache_page)(struct vm_area_struct *vma, unsigned long page, unsigned long pfn); |