diff options
author | Carmelo Amoroso <carmelo.amoroso@st.com> | 2009-07-02 11:02:13 +0200 |
---|---|---|
committer | Carmelo Amoroso <carmelo.amoroso@st.com> | 2009-07-02 11:02:13 +0200 |
commit | a98934adc9277d1dea52b929d59c6b15ccf115a2 (patch) | |
tree | 7f050401a9a79f57bf654c763e3d1f8808af2d0f /libc/sysdeps/linux/sh/cacheflush.c | |
parent | 801626b26745a1bd24cbf56c3d8720204a1db95d (diff) |
sh: add cacheflush syscall wrapper
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
Diffstat (limited to 'libc/sysdeps/linux/sh/cacheflush.c')
-rw-r--r-- | libc/sysdeps/linux/sh/cacheflush.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/sh/cacheflush.c b/libc/sysdeps/linux/sh/cacheflush.c new file mode 100644 index 000000000..58229186d --- /dev/null +++ b/libc/sysdeps/linux/sh/cacheflush.c @@ -0,0 +1,15 @@ +/* + * cacheflush syscall for SUPERH + * + * Copyright (C) 2009 STMicroelectronics Ltd + * Author: Giuseppe Cavallaro <peppe.cavallaro@st.com> + * + * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. + */ +#include <errno.h> +#include <unistd.h> +#include <sys/syscall.h> + +#ifdef __NR_cacheflush +_syscall3(int, cacheflush, char *, addr, int, nbytes, int, op) +#endif |