浏览代码

bfin: fix sram/dma syscall definitions

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>
Steve Kilbane 14 年之前
父节点
当前提交
f8355584a3
共有 3 个文件被更改,包括 5 次插入5 次删除
  1. 2 2
      libc/sysdeps/linux/bfin/dma-memcpy.c
  2. 1 1
      libc/sysdeps/linux/bfin/sram-alloc.c
  3. 2 2
      libc/sysdeps/linux/bfin/sram-free.c

+ 2 - 2
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)

+ 1 - 1
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)
-

+ 2 - 2
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)