summaryrefslogtreecommitdiffstats
path: root/arch/sh/include/asm/unistd_64.h
diff options
context:
space:
mode:
authorStuart Menefy2009-08-24 11:16:56 +0200
committerPaul Mundt2009-08-24 11:16:56 +0200
commit6d243dd37002bcee54841852ab1b8606fd457851 (patch)
tree9c8e55d065116647615a86e3eb0c783fe98cc83e /arch/sh/include/asm/unistd_64.h
parentsh: Improve comments int SH4 cache flushing code (diff)
downloadkernel-qcow2-linux-6d243dd37002bcee54841852ab1b8606fd457851.tar.gz
kernel-qcow2-linux-6d243dd37002bcee54841852ab1b8606fd457851.tar.xz
kernel-qcow2-linux-6d243dd37002bcee54841852ab1b8606fd457851.zip
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>
Diffstat (limited to 'arch/sh/include/asm/unistd_64.h')
-rw-r--r--arch/sh/include/asm/unistd_64.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/sh/include/asm/unistd_64.h b/arch/sh/include/asm/unistd_64.h
index a751699afda3..2b84bc916bc5 100644
--- a/arch/sh/include/asm/unistd_64.h
+++ b/arch/sh/include/asm/unistd_64.h
@@ -137,7 +137,7 @@
#define __NR_clone 120
#define __NR_setdomainname 121
#define __NR_uname 122
-#define __NR_modify_ldt 123
+#define __NR_cacheflush 123
#define __NR_adjtimex 124
#define __NR_mprotect 125
#define __NR_sigprocmask 126