sh: Add sys_cacheflush() call for SH CPUs.
authorStuart Menefy <stuart.menefy@st.com>
Mon, 24 Aug 2009 09:16:56 +0000 (18:16 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 24 Aug 2009 09:16:56 +0000 (18:16 +0900)
commit6d243dd37002bcee54841852ab1b8606fd457851
tree9c8e55d065116647615a86e3eb0c783fe98cc83e
parenta5cf9e2444ec15de5407696ff21c32dd21ca0a8d
sh: Add sys_cacheflush() call for SH CPUs.

Adds a system call to allow user code to flush code from the cache.
You can use instructions for the data side, but the iside can
only be done by a flush ROM which really only works with a direct
mapped cache. The later SH4's have 2 way Iside, so this call allows
a portable way to flush the cache.

Signed-off-by: Stuart Menefy <stuart.menefy@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/include/asm/Kbuild
arch/sh/include/asm/cachectl.h [new file with mode: 0644]
arch/sh/include/asm/unistd_32.h
arch/sh/include/asm/unistd_64.h
arch/sh/kernel/sys_sh.c
arch/sh/kernel/syscalls_32.S
arch/sh/kernel/syscalls_64.S