[git commit master 1/1] bfin: fix sram/dma syscall definitions

Mike Frysinger vapier at gentoo.org
Tue Feb 22 00:51:02 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=f8355584a335a2a2dc03842f19ba9f1b587b2f5c
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master

Once we pull in the header, we're forced to declare the syscall with
all the right types.

Signed-off-by: Steve Kilbane <steve at whitecrow.demon.co.uk>
Signed-off-by: Mike Frysinger <vapier at gentoo.org>
---
 libc/sysdeps/linux/bfin/dma-memcpy.c |    4 ++--
 libc/sysdeps/linux/bfin/sram-alloc.c |    2 +-
 libc/sysdeps/linux/bfin/sram-free.c  |    4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/libc/sysdeps/linux/bfin/dma-memcpy.c b/libc/sysdeps/linux/bfin/dma-memcpy.c
index 274b99e..b715aeb 100644
--- a/libc/sysdeps/linux/bfin/dma-memcpy.c
+++ b/libc/sysdeps/linux/bfin/dma-memcpy.c
@@ -1,6 +1,6 @@
 #include <unistd.h>
 #include <errno.h>
 #include <sys/syscall.h>
+#include <bfin_sram.h>
 
-_syscall3 (__ptr_t, dma_memcpy, __ptr_t, dest, __ptr_t, src, size_t, len)
-
+_syscall3 (void *, dma_memcpy, void *, dest, const void *, src, size_t, len)
diff --git a/libc/sysdeps/linux/bfin/sram-alloc.c b/libc/sysdeps/linux/bfin/sram-alloc.c
index 6b33b26..8518119 100644
--- a/libc/sysdeps/linux/bfin/sram-alloc.c
+++ b/libc/sysdeps/linux/bfin/sram-alloc.c
@@ -1,6 +1,6 @@
 #include <unistd.h>
 #include <errno.h>
 #include <sys/syscall.h>
+#include <bfin_sram.h>
 
 _syscall2 (__ptr_t, sram_alloc, size_t, len, unsigned long, flags)
-
diff --git a/libc/sysdeps/linux/bfin/sram-free.c b/libc/sysdeps/linux/bfin/sram-free.c
index 0fba936..8260eb6 100644
--- a/libc/sysdeps/linux/bfin/sram-free.c
+++ b/libc/sysdeps/linux/bfin/sram-free.c
@@ -1,6 +1,6 @@
 #include <unistd.h>
 #include <errno.h>
 #include <sys/syscall.h>
+#include <bfin_sram.h>
 
-_syscall1 (__ptr_t, sram_free, __ptr_t, addr)
-
+_syscall1 (int, sram_free, const void *, addr)
-- 
1.7.3.4



More information about the uClibc-cvs mailing list