sh: Fix argument page dcache flushing regression.
authorCarmelo Amoroso <carmelo73@gmail.com>
Mon, 7 Jan 2008 04:50:18 +0000 (13:50 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 7 Jan 2008 04:50:18 +0000 (13:50 +0900)
commit844b43adba74d97f15e56b103c97bfcccaa01aa6
treeb744ec1d5d8f7d639274a18f53f653fcf1b398f8
parent3ce54450461bad18bbe1f9f5aa3ecd2f8e8d1235
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 <carmelo73@gmail.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
include/asm-sh/cacheflush.h