OSDN Git Service

bfin: fix sram/dma syscall definitions
authorSteve Kilbane <steve@whitecrow.demon.co.uk>
Tue, 22 Feb 2011 00:43:32 +0000 (19:43 -0500)
committerMike Frysinger <vapier@gentoo.org>
Tue, 22 Feb 2011 00:50:58 +0000 (19:50 -0500)
Once we pull in the header, we're forced to declare the syscall with
all the right types.

Signed-off-by: Steve Kilbane <steve@whitecrow.demon.co.uk>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
libc/sysdeps/linux/bfin/dma-memcpy.c
libc/sysdeps/linux/bfin/sram-alloc.c
libc/sysdeps/linux/bfin/sram-free.c

index 274b99e..b715aeb 100644 (file)
@@ -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)
index 6b33b26..8518119 100644 (file)
@@ -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)
-
index 0fba936..8260eb6 100644 (file)
@@ -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)