Commit:     844b43adba74d97f15e56b103c97bfcccaa01aa6
Parent:     3ce54450461bad18bbe1f9f5aa3ecd2f8e8d1235
Author:     Carmelo Amoroso <[EMAIL PROTECTED]>
AuthorDate: Mon Jan 7 13:50:18 2008 +0900
Committer:  Paul Mundt <[EMAIL PROTECTED]>
CommitDate: Mon Jan 7 13:50:18 2008 +0900

    sh: Fix argument page dcache flushing regression.
    In the do_execve() path, argument page handling used to explicitly call
    flush_dcache_page() for each page, this has since been reworked and
    uses flush_kernel_dcache_page() instead, which is presently a nop.
    Doing a simple modprobe/rmmod in a loop under busybox consistently
    manages to crash without providing a sane flush_kernel_dcache_page()
    implementation, so, plug in a simple implementation.
    Signed-off-by: Carmelo Amoroso <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mundt <[EMAIL PROTECTED]>
 include/asm-sh/cacheflush.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/include/asm-sh/cacheflush.h b/include/asm-sh/cacheflush.h
index 9d528ad..e034c36 100644
--- a/include/asm-sh/cacheflush.h
+++ b/include/asm-sh/cacheflush.h
@@ -43,6 +43,12 @@ extern void __flush_purge_region(void *start, int size);
 extern void __flush_invalidate_region(void *start, int size);
+static inline void flush_kernel_dcache_page(struct page *page)
+       flush_dcache_page(page);
 #if defined(CONFIG_CPU_SH4) && !defined(CONFIG_CACHE_OFF)
 extern void copy_to_user_page(struct vm_area_struct *vma,
        struct page *page, unsigned long vaddr, void *dst, const void *src,
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to