From 5fc54227982c5e5edd060396f9fe2639795622d0 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Tue, 26 Apr 2011 22:34:59 +0200 Subject: make arch specific cacheflush, readahead and sysmips LINUX_SPECIFIC dependent Remove the related headers. Adapt sh's type to the one used everywhere and add prototype for it. Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/sh/Makefile.arch | 6 +++++- libc/sysdeps/linux/sh/cacheflush.c | 5 ++--- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'libc/sysdeps/linux/sh') diff --git a/libc/sysdeps/linux/sh/Makefile.arch b/libc/sysdeps/linux/sh/Makefile.arch index 5ebf42bf1..3ec8cbd3f 100644 --- a/libc/sysdeps/linux/sh/Makefile.arch +++ b/libc/sysdeps/linux/sh/Makefile.arch @@ -7,7 +7,11 @@ # CSRC := \ - pipe.c __init_brk.c brk.c sbrk.c pread_write.c cacheflush.c + pipe.c __init_brk.c brk.c sbrk.c pread_write.c + +ifeq ($(UCLIBC_LINUX_SPECIFIC),y) +CSRC += cacheflush.c +endif SSRC := setjmp.S __longjmp.S ___fpscr_values.S diff --git a/libc/sysdeps/linux/sh/cacheflush.c b/libc/sysdeps/linux/sh/cacheflush.c index 58229186d..619b96b5a 100644 --- a/libc/sysdeps/linux/sh/cacheflush.c +++ b/libc/sysdeps/linux/sh/cacheflush.c @@ -6,10 +6,9 @@ * * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. */ -#include -#include #include #ifdef __NR_cacheflush -_syscall3(int, cacheflush, char *, addr, int, nbytes, int, op) +int cacheflush(void *addr, const int nbytes, int op); +_syscall3(int, cacheflush, void *, addr, const int, nbytes, const int, op) #endif -- cgit v1.2.3