Index: uspace/lib/libc/include/libc.h
===================================================================
--- uspace/lib/libc/include/libc.h	(revision 1314e3bcb45f4d382dc343b61905c7860d722189)
+++ uspace/lib/libc/include/libc.h	(revision e686744cbed5c5a5a950e59a58fbaf1ca5f0d84e)
@@ -40,9 +40,12 @@
 #include <libarch/syscall.h>
 
-#define __SYSCALL0(id) __syscall(0, 0, 0, 0, id)
-#define __SYSCALL1(id, p1) __syscall(p1, 0, 0, 0, id)
-#define __SYSCALL2(id, p1, p2) __syscall(p1, p2, 0, 0, id)
-#define __SYSCALL3(id, p1, p2, p3) __syscall(p1, p2, p3, 0, id)
-#define __SYSCALL4(id, p1, p2, p3, p4) __syscall(p1, p2, p3, p4, id)
+#define __SYSCALL0(id) __syscall(0, 0, 0, 0, 0, 0, id)
+#define __SYSCALL1(id, p1) __syscall(p1, 0, 0, 0, 0, 0, id)
+#define __SYSCALL2(id, p1, p2) __syscall(p1, p2, 0, 0, 0, 0, id)
+#define __SYSCALL3(id, p1, p2, p3) __syscall(p1, p2, p3, 0, 0, 0, id)
+#define __SYSCALL4(id, p1, p2, p3, p4) __syscall(p1, p2, p3, p4, 0, 0, id)
+#define __SYSCALL5(id, p1, p2, p3, p4, p5) __syscall(p1, p2, p3, p4, p5, 0, id)
+#define __SYSCALL6(id, p1, p2, p3, p4, p5, p6) \
+    __syscall(p1, p2, p3, p4, p5, p6,id)
 
 extern void __main(void);
Index: uspace/lib/libc/include/syscall.h
===================================================================
--- uspace/lib/libc/include/syscall.h	(revision 1314e3bcb45f4d382dc343b61905c7860d722189)
+++ uspace/lib/libc/include/syscall.h	(revision e686744cbed5c5a5a950e59a58fbaf1ca5f0d84e)
@@ -32,5 +32,6 @@
 /**
  * @file
- * @brief	Syscall function declaration for architectures that don't inline syscalls.
+ * @brief	Syscall function declaration for architectures that don't
+ *		inline syscalls.
  */
 
@@ -41,5 +42,7 @@
 #include <kernel/syscall/syscall.h>
 
-extern sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2, const sysarg_t p3, const sysarg_t p4, const syscall_t id);
+extern sysarg_t __syscall(const sysarg_t p1, const sysarg_t p2,
+    const sysarg_t p3, const sysarg_t p4, const sysarg_t p5, const sysarg_t p6,
+    const syscall_t id);
 
 #endif
