login
Header Space

 
 

[PATCH 10/22] m32r: Introducing asm/syscalls.h

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: LKML <linux-kernel@...>, kernelnewbies <kernelnewbies@...>, David Woodhouse <dwmw2@...>, <takata@...>, <linux-m32r@...>
Date: Sunday, July 20, 2008 - 7:35 pm

Declaring arch-dependent syscalls for m32r architecture

Signed-off-by: Jaswinder Singh <jaswinder@infradead.org>
---
 arch/m32r/kernel/process.c  |    1 +
 arch/m32r/kernel/signal.c   |    1 +
 include/asm-m32r/syscalls.h |   49 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 51 insertions(+), 0 deletions(-)

diff --git a/arch/m32r/kernel/process.c b/arch/m32r/kernel/process.c
index a689e29..9f5335c 100644
--- a/arch/m32r/kernel/process.c
+++ b/arch/m32r/kernel/process.c
@@ -26,6 +26,7 @@
 #include <linux/unistd.h>
 #include <linux/slab.h>
 #include <linux/hardirq.h>
+#include <linux/syscalls.h>
 
 #include <asm/io.h>
 #include <asm/uaccess.h>
diff --git a/arch/m32r/kernel/signal.c b/arch/m32r/kernel/signal.c
index 1812454..4478893 100644
--- a/arch/m32r/kernel/signal.c
+++ b/arch/m32r/kernel/signal.c
@@ -21,6 +21,7 @@
 #include <linux/stddef.h>
 #include <linux/personality.h>
 #include <linux/freezer.h>
+#include <linux/syscalls.h>
 #include <asm/cacheflush.h>
 #include <asm/ucontext.h>
 #include <asm/uaccess.h>
diff --git a/include/asm-m32r/syscalls.h b/include/asm-m32r/syscalls.h
index e69de29..78ccedb 100644
--- a/include/asm-m32r/syscalls.h
+++ b/include/asm-m32r/syscalls.h
@@ -0,0 +1,49 @@
+/*
+ * syscalls.h - Linux syscall interfaces (arch-specific)
+ *
+ * Copyright (c) 2008 Jaswinder Singh
+ *
+ * This file is released under the GPLv2.
+ * See the file COPYING for more details.
+ *
+ * Please do not call me directly, include linux/syscalls.h
+ */
+
+#ifndef _ASM_M32R_SYSCALLS_H
+#define _ASM_M32R_SYSCALLS_H
+
+/* kernel/process.c */
+asmlinkage int sys_fork(unsigned long, unsigned long, unsigned long,
+			unsigned long, unsigned long, unsigned long,
+			unsigned long, struct pt_regs);
+asmlinkage int sys_clone(unsigned long, unsigned long, unsigned long,
+			 unsigned long, unsigned long, unsigned long,
+			 unsigned long, struct pt_regs);
+asmlinkage int sys_vfork(unsigned long, unsigned long, unsigned long,
+			unsigned long, unsigned long, unsigned long,
+			unsigned long, struct pt_regs);
+asmlinkage int sys_execve(char __user *, char __user * __user *,
+			  char __user * __user *, unsigned long,
+			  unsigned long, unsigned long, unsigned long,
+			  struct pt_regs);
+
+/* kernel/signal.c */
+asmlinkage int sys_rt_sigsuspend(sigset_t __user *, size_t, unsigned long,
+				 unsigned long, unsigned long, unsigned long,
+				 unsigned long, struct pt_regs *);
+asmlinkage int sys_sigaltstack(const stack_t __user *, stack_t __user *,
+			       unsigned long, unsigned long, unsigned long,
+			       unsigned long, unsigned long, struct pt_regs *);
+asmlinkage int sys_rt_sigreturn(unsigned long, unsigned long, unsigned long,
+				unsigned long, unsigned long, unsigned long,
+				unsigned long, struct pt_regs *);
+
+/* kernel/sys_m32r.c */
+asmlinkage int sys_tas(int __user *);
+asmlinkage long sys_mmap2(unsigned long, unsigned long, unsigned long,
+			  unsigned long, unsigned long, unsigned long);
+asmlinkage int sys_ipc(uint, int, int, int, void __user *, long);
+asmlinkage int sys_uname(struct old_utsname __user *);
+asmlinkage int sys_cachectl(char *, int, int);
+
+#endif /* _ASM_M32R_SYSCALLS_H */
-- 
1.5.5.1



--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/22] Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 6:21 pm)
Re: [PATCH 0/22] Introducing asm/syscalls.h, Alexey Dobriyan, (Sun Jul 20, 8:28 pm)
Re: [PATCH 0/22] Introducing asm/syscalls.h, Jaswinder Singh, (Mon Jul 21, 1:45 am)
Re: [PATCH 0/22] Introducing asm/syscalls.h, Matthew Wilcox, (Mon Jul 21, 1:55 am)
Re: [PATCH 0/22] Introducing asm/syscalls.h, Jaswinder Singh, (Mon Jul 21, 2:07 am)
Re: [PATCH 0/22] Introducing asm/syscalls.h, Matthew Wilcox, (Mon Jul 21, 2:16 am)
Re: [PATCH 0/22] Introducing asm/syscalls.h, Jaswinder Singh, (Mon Jul 21, 2:59 am)
[PATCH 1/22] Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 6:26 pm)
[PATCH 2/22] alpha: Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 6:27 pm)
[PATCH 3/22] arm: Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 6:30 pm)
[PATCH 4/22] avr32: Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 7:20 pm)
Re: [PATCH 4/22] avr32: Introducing asm/syscalls.h, Haavard Skinnemoen, (Thu Jul 24, 9:09 am)
Re: [PATCH 4/22] avr32: Introducing asm/syscalls.h, Jaswinder Singh, (Thu Jul 24, 11:07 am)
Re: [PATCH 4/22] avr32: Introducing asm/syscalls.h, Haavard Skinnemoen, (Thu Jul 24, 12:49 pm)
[PATCH 5/22] blackfin: Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 7:21 pm)
[PATCH 6/22] cris: Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 7:25 pm)
[PATCH 7/22] frv: Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 7:31 pm)
[PATCH 8/22] h8300: Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 7:32 pm)
[PATCH 9/22] ia64: Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 7:33 pm)
Re: [PATCH 9/22] ia64: Introducing asm/syscalls.h, Matthew Wilcox, (Sun Jul 20, 8:19 pm)
Re: [PATCH 9/22] ia64: Introducing asm/syscalls.h, Jaswinder Singh, (Mon Jul 21, 1:19 am)
[PATCH 10/22] m32r: Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 7:35 pm)
[PATCH 11/22] m68k: Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 7:37 pm)
[PATCH 12/22] m68knommu: Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 7:39 pm)
[PATCH 13/22] mips: Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 7:40 pm)
[PATCH 14/22] mn10300: Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 7:42 pm)
[PATCH 15/22] parisc: Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 7:46 pm)
[PATCH 16/22] s390: Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 7:50 pm)
[PATCH 17/22] sh: Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 7:52 pm)
[PATCH 18/22] sparc: Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 7:53 pm)
[PATCH 19/22] um: Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 7:54 pm)
[PATCH 20/22] v850: Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 7:55 pm)
[PATCH 21/22] x86: Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 7:58 pm)
[PATCH 22/22] xtensa: Introducing asm/syscalls.h, Jaswinder Singh, (Sun Jul 20, 8:00 pm)
speck-geostationary