[uClibc] [PATCH] sysmips system call

Atsushi Nemoto anemo at mba.ocn.ne.jp
Tue Oct 28 10:18:14 UTC 2003


Hi.  This patch add the sysmips system call for mips.  I also changed
an argument type according to 2.6 kernel headers.


diff -urN uClibc-0.9.21.org/libc/sysdeps/linux/mips/cacheflush.c uClibc-0.9.21/libc/sysdeps/linux/mips/cacheflush.c
--- uClibc-0.9.21.org/libc/sysdeps/linux/mips/cacheflush.c	Sat Feb  1 00:26:18 2003
+++ uClibc-0.9.21/libc/sysdeps/linux/mips/cacheflush.c	Wed Oct  8 13:23:22 2003
@@ -23,4 +23,5 @@
 _syscall3(int, cacheflush, void *, addr, const int, nbytes, const int, op);
 weak_alias(cacheflush, _flush_cache)
 _syscall3(int, cachectl, void *, addr, const int, nbytes, const int, op);
+_syscall4(int, sysmips, const int, cmd, const long, arg1, const int, arg2, const int, arg3);
 
diff -urN uClibc-0.9.21.org/libc/sysdeps/linux/mips/sys/sysmips.h uClibc-0.9.21/libc/sysdeps/linux/mips/sys/sysmips.h
--- uClibc-0.9.21.org/libc/sysdeps/linux/mips/sys/sysmips.h	Sat Mar  2 05:46:17 2002
+++ uClibc-0.9.21/libc/sysdeps/linux/mips/sys/sysmips.h	Wed Oct  8 13:21:33 2003
@@ -28,7 +28,7 @@
 
 __BEGIN_DECLS
 
-extern int sysmips (__const int cmd, __const int arg1,
+extern int sysmips (__const int cmd, __const long arg1,
 		    __const int arg2, __const int arg3) __THROW;
 
 __END_DECLS
---
Atsushi Nemoto



More information about the uClibc mailing list