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/bfin/Makefile.arch | 6 +++++- libc/sysdeps/linux/bfin/cacheflush.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'libc/sysdeps/linux/bfin') diff --git a/libc/sysdeps/linux/bfin/Makefile.arch b/libc/sysdeps/linux/bfin/Makefile.arch index 425a68898..15ecfd81e 100644 --- a/libc/sysdeps/linux/bfin/Makefile.arch +++ b/libc/sysdeps/linux/bfin/Makefile.arch @@ -6,7 +6,11 @@ # CSRC := bsdsetjmp.c clone.c \ - sram-alloc.c sram-free.c dma-memcpy.c cacheflush.c + sram-alloc.c sram-free.c dma-memcpy.c + +ifeq ($(UCLIBC_LINUX_SPECIFIC),y) +CSRC += cacheflush.c +endif SSRC := __longjmp.S setjmp.S bsd-_setjmp.S diff --git a/libc/sysdeps/linux/bfin/cacheflush.c b/libc/sysdeps/linux/bfin/cacheflush.c index 6ff3ad560..a4b9f4ae9 100644 --- a/libc/sysdeps/linux/bfin/cacheflush.c +++ b/libc/sysdeps/linux/bfin/cacheflush.c @@ -11,5 +11,5 @@ #ifdef __NR_cacheflush # include -_syscall3 (int, cacheflush, void *, start, const int, nbytes, const int, flags) +_syscall3 (int, cacheflush, void *, addr, const int, nbytes, const int, flags) #endif -- cgit v1.2.3