Skip to contentSkip to conversation

Introducing asm/syscalls.h

PATCH In review Jaswinder Singh 4 participants 34 messages Jul 20, 2008 – Jul 24, 2008

Subsystems (12)
Arm (32-bit) x86 MIPS s390 +8 more subsystems
lore
Share & tools
lore
#0 lore raw

cover Introducing asm/syscalls.h

Hello,

The following series of patches introduce asm/syscalls.h in various architectures.

As per David Woodhouse suggestion I am sending one patch per architecture.

Thank you,

Jaswinder Singh.

#1 lore raw

PATCH 1/22 Introducing asm/syscalls.h

Forward declartion of struct {old,}old_utsname in linux/syscalls.h for system calls like sys_uname, sys_olduname

---
 include/linux/syscalls.h         |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
 create mode 100644 include/asm-alpha/syscalls.h
 create mode 100644 include/asm-arm/syscalls.h
 create mode 100644 include/asm-avr32/syscalls.h
 create mode 100644 include/asm-blackfin/syscalls.h
 create mode 100644 include/asm-cris/syscalls.h
 create mode 100644 include/asm-frv/syscalls.h
 create mode 100644 include/asm-h8300/syscalls.h
 create mode 100644 include/asm-ia64/syscalls.h
 create mode 100644 include/asm-m32r/syscalls.h
 create mode 100644 include/asm-m68k/syscalls.h
 create mode 100644 include/asm-m68knommu/syscalls.h
 create mode 100644 include/asm-mips/syscalls.h
 create mode 100644 include/asm-mn10300/syscalls.h
 create mode 100644 include/asm-parisc/syscalls.h
 create mode 100644 include/asm-s390/syscalls.h
 create mode 100644 include/asm-sh/syscalls.h
 create mode 100644 include/asm-sparc/syscalls.h
 create mode 100644 include/asm-um/syscalls.h
 create mode 100644 include/asm-v850/syscalls.h
 create mode 100644 include/asm-x86/syscalls.h
 create mode 100644 include/asm-xtensa/syscalls.h
include/asm-alpha/syscalls.h new file +0 -0
new file mode 100644
index 0000000..e69de29
include/asm-arm/syscalls.h new file +0 -0
new file mode 100644
index 0000000..e69de29
include/asm-avr32/syscalls.h new file +0 -0
new file mode 100644
index 0000000..e69de29
include/asm-blackfin/syscalls.h new file +0 -0
new file mode 100644
index 0000000..e69de29
include/asm-cris/syscalls.h new file +0 -0
new file mode 100644
index 0000000..e69de29
include/asm-frv/syscalls.h new file +0 -0
new file mode 100644
index 0000000..e69de29
include/asm-h8300/syscalls.h new file +0 -0
new file mode 100644
index 0000000..e69de29
include/asm-ia64/syscalls.h new file +0 -0
new file mode 100644
index 0000000..e69de29
include/asm-m32r/syscalls.h new file +0 -0
new file mode 100644
index 0000000..e69de29
include/asm-m68k/syscalls.h new file +0 -0
new file mode 100644
index 0000000..e69de29
include/asm-m68knommu/syscalls.h new file +0 -0
new file mode 100644
index 0000000..e69de29
include/asm-mips/syscalls.h new file +0 -0
new file mode 100644
index 0000000..e69de29
include/asm-mn10300/syscalls.h new file +0 -0
new file mode 100644
index 0000000..e69de29
include/asm-parisc/syscalls.h new file +0 -0
new file mode 100644
index 0000000..e69de29
include/asm-s390/syscalls.h new file +0 -0
new file mode 100644
index 0000000..e69de29
include/asm-sh/syscalls.h new file +0 -0
new file mode 100644
index 0000000..e69de29
include/asm-sparc/syscalls.h new file +0 -0
new file mode 100644
index 0000000..e69de29
include/asm-um/syscalls.h new file +0 -0
new file mode 100644
index 0000000..e69de29
include/asm-v850/syscalls.h new file +0 -0
new file mode 100644
index 0000000..e69de29
include/asm-x86/syscalls.h new file +0 -0
new file mode 100644
index 0000000..e69de29
include/asm-xtensa/syscalls.h new file +0 -0
new file mode 100644
index 0000000..e69de29
include/linux/syscalls.h +4 -0
index 0522f36..829556e 100644
@@ -54,6 +54,8 @@ struct compat_stat;
 struct compat_timeval;
 struct robust_list_head;
 struct getcpu_cache;
+struct oldold_utsname;
+struct old_utsname;
 
 #include <linux/types.h>
 #include <linux/aio_abi.h>
@@ -65,6 +67,8 @@ struct getcpu_cache;
 #include <linux/quota.h>
 #include <linux/key.h>
 
+#include <asm/syscalls.h>
+
 asmlinkage long sys_time(time_t __user *tloc);
 asmlinkage long sys_stime(time_t __user *tptr);
 asmlinkage long sys_gettimeofday(struct timeval __user *tv,
Signature · 1 line
1.5.5.1
#2 lore raw

PATCH 2/22 alpha: Introducing asm/syscalls.h

Declaring arch-dependent syscalls for alpha architecture

---
 arch/alpha/kernel/signal.c   |    1 +
 include/asm-alpha/syscalls.h |   21 +++++++++++++++++++++
 2 files changed, 22 insertions(+), 0 deletions(-)
arch/alpha/kernel/signal.c +1 -0
index 410af4f..3cf9971 100644
@@ -19,6 +19,7 @@
 #include <linux/tty.h>
 #include <linux/binfmts.h>
 #include <linux/bitops.h>
+#include <linux/syscalls.h>
 
 #include <asm/uaccess.h>
 #include <asm/sigcontext.h>
include/asm-alpha/syscalls.h +21 -0
index e69de29..eec7dc5 100644
@@ -0,0 +1,21 @@
+/*
+ * 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_APLHA_SYSCALLS_H
+#define _ASM_APLHA_SYSCALLS_H
+
+/* kernel/signal.c */
+asmlinkage long sys_rt_sigaction(int, const struct sigaction __user *,
+				 struct sigaction __user *, size_t,
+				 void __user *restorer);
+asmlinkage int sys_sigaltstack(const stack_t __user *, stack_t __user *);
+
+#endif /* _ASM_APLHA_SYSCALLS_H */
Signature · 1 line
1.5.5.1
#3 lore raw

PATCH 3/22 arm: Introducing asm/syscalls.h

Declaring arch-dependent syscalls for arm architecture

---
 arch/arm/kernel/signal.c          |    1 +
 arch/arm/kernel/sys_oabi-compat.c |    3 --
 include/asm-arm/syscalls.h        |   73 +++++++++++++++++++++++++++++++++++++
 3 files changed, 74 insertions(+), 3 deletions(-)
arch/arm/kernel/signal.c +1 -0
index ef2f86a..64e23ed 100644
@@ -11,6 +11,7 @@
 #include <linux/signal.h>
 #include <linux/personality.h>
 #include <linux/freezer.h>
+#include <linux/syscalls.h>
 
 #include <asm/elf.h>
 #include <asm/cacheflush.h>
arch/arm/kernel/sys_oabi-compat.c +0 -3
index 96ab5f5..a1e6fa4 100644
@@ -354,9 +354,6 @@ asmlinkage long sys_oabi_semop(int semid, struct oabi_sembuf __user *tsops,
 	return sys_oabi_semtimedop(semid, tsops, nsops, NULL);
 }
 
-extern asmlinkage int sys_ipc(uint call, int first, int second, int third,
-			      void __user *ptr, long fifth);
-
 asmlinkage int sys_oabi_ipc(uint call, int first, int second, int third,
 			    void __user *ptr, long fifth)
 {
include/asm-arm/syscalls.h +73 -0

73 lines not on this page · raw message

Signature · 1 line
1.5.5.1
#4 lore raw

PATCH 4/22 avr32: Introducing asm/syscalls.h

Declaring arch-dependent syscalls for avr32 architecture

---
 arch/avr32/kernel/process.c   |    1 +
 arch/avr32/kernel/signal.c    |    1 +
 arch/avr32/kernel/sys_avr32.c |    1 +
 arch/avr32/mm/cache.c         |    1 +
 include/asm-avr32/syscalls.h  |   36 ++++++++++++++++++++++++++++++++++++
 5 files changed, 40 insertions(+), 0 deletions(-)
arch/avr32/kernel/process.c +1 -0
index 6cf9df1..ee57d4c 100644
@@ -14,6 +14,7 @@
 #include <linux/tick.h>
 #include <linux/uaccess.h>
 #include <linux/unistd.h>
+#include <linux/syscalls.h>
 
 #include <asm/sysreg.h>
 #include <asm/ocd.h>
arch/avr32/kernel/signal.c +1 -0
index c5b11f9..90ba201 100644
@@ -16,6 +16,7 @@
 #include <linux/ptrace.h>
 #include <linux/unistd.h>
 #include <linux/freezer.h>
+#include <linux/syscalls.h>
 
 #include <asm/uaccess.h>
 #include <asm/ucontext.h>
arch/avr32/kernel/sys_avr32.c +1 -0
index 8e8911e..4c0a167 100644
@@ -10,6 +10,7 @@
 #include <linux/file.h>
 #include <linux/mm.h>
 #include <linux/unistd.h>
+#include <linux/syscalls.h>
 
 #include <asm/mman.h>
 #include <asm/uaccess.h>
arch/avr32/mm/cache.c +1 -0
index 15a4e5e..2faf302 100644
@@ -8,6 +8,7 @@
 
 #include <linux/highmem.h>
 #include <linux/unistd.h>
+#include <linux/syscalls.h>
 
 #include <asm/cacheflush.h>
 #include <asm/cachectl.h>
include/asm-avr32/syscalls.h +36 -0
index e69de29..727c58c 100644
@@ -0,0 +1,36 @@
+/*
+ * 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_AVR32_SYSCALLS_H
+#define _ASM_AVR32_SYSCALLS_H
+
+/* kernel/process.c */
+asmlinkage int sys_fork(struct pt_regs);
+asmlinkage int sys_clone(unsigned long, unsigned long,
+			 unsigned long, unsigned long,
+			 struct pt_regs *);
+asmlinkage int sys_vfork(struct pt_regs);
+asmlinkage int sys_execve(char __user *, char __user *__user *,
+			  char __user *__user *, struct pt_regs *);
+
+/* kernel/signal.c */
+asmlinkage int sys_sigaltstack(const stack_t __user *, stack_t __user *,
+			       struct pt_regs *);
+asmlinkage int sys_rt_sigreturn(struct pt_regs *);
+
+/* kernel/sys_avr32.c */
+asmlinkage long sys_mmap2(unsigned long, unsigned long, unsigned long,
+			  unsigned long, unsigned long, off_t);
+
+/* mm/cache.c */
+asmlinkage int sys_cacheflush(int, void __user *, size_t);
+
+#endif /* _ASM_AVR32_SYSCALLS_H */
Signature · 1 line
1.5.5.1
#5 lore raw

PATCH 5/22 blackfin: Introducing asm/syscalls.h

Declaring arch-dependent syscalls for blackfin architecture

---
 arch/blackfin/kernel/process.c  |    1 +
 include/asm-blackfin/syscalls.h |   29 +++++++++++++++++++++++++++++
 2 files changed, 30 insertions(+), 0 deletions(-)
arch/blackfin/kernel/process.c +1 -0
index 53c2cd2..6ca088c 100644
@@ -36,6 +36,7 @@
 #include <linux/tick.h>
 #include <linux/fs.h>
 #include <linux/err.h>
+#include <linux/syscalls.h>
 
 #include <asm/blackfin.h>
 #include <asm/fixed_code.h>
include/asm-blackfin/syscalls.h +29 -0
index e69de29..73927f5 100644
@@ -0,0 +1,29 @@
+/*
+ * 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_BLACKFIN_SYSCALLS_H
+#define _ASM_BLACKFIN_SYSCALLS_H
+
+/* kernel/process.c */
+asmlinkage int sys_execve(char __user *, char __user * __user *,
+			  char __user * __user *);
+
+/* kernel/signal.c */
+asmlinkage int sys_sigaltstack(const stack_t __user *, stack_t __user *);
+
+/* kernel/sys_bfin.c */
+asmlinkage long sys_mmap2(unsigned long, unsigned long, unsigned long,
+			  unsigned long, unsigned long, unsigned long);
+asmlinkage void *sys_sram_alloc(size_t, unsigned long);
+asmlinkage int sys_sram_free(const void *);
+asmlinkage void *sys_dma_memcpy(void *, const void *, size_t);
+
+#endif /* _ASM_BLACKFIN_SYSCALLS_H */
Signature · 1 line
1.5.5.1
#6 lore raw

PATCH 6/22 cris: Introducing asm/syscalls.h

Declaring arch-dependent syscalls for cris architecture

---
 include/asm-cris/syscalls.h |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
include/asm-cris/syscalls.h +21 -0
index e69de29..711adad 100644
@@ -0,0 +1,21 @@
+/*
+ * 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_CRIS_SYSCALLS_H
+#define _ASM_CRIS_SYSCALLS_H
+
+/* kernel/sys_cris.c */
+asmlinkage unsigned long old_mmap(unsigned long __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);
+
+#endif /* _ASM_CRIS_SYSCALLS_H */
Signature · 1 line
1.5.5.1
#7 lore raw

PATCH 7/22 frv: Introducing asm/syscalls.h

Declaring arch-dependent syscalls for frv architecture

---
 arch/frv/kernel/process.c  |    1 +
 arch/frv/kernel/signal.c   |    1 +
 include/asm-frv/syscalls.h |   37 +++++++++++++++++++++++++++++++++++++
 3 files changed, 39 insertions(+), 0 deletions(-)
arch/frv/kernel/process.c +1 -0
index 9583a33..09b3c13 100644
@@ -26,6 +26,7 @@
 #include <linux/reboot.h>
 #include <linux/interrupt.h>
 #include <linux/pagemap.h>
+#include <linux/syscalls.h>
 
 #include <asm/asm-offsets.h>
 #include <asm/uaccess.h>
arch/frv/kernel/signal.c +1 -0
index 3bdb368..5d024fe 100644
@@ -21,6 +21,7 @@
 #include <linux/unistd.h>
 #include <linux/personality.h>
 #include <linux/freezer.h>
+#include <linux/syscalls.h>
 #include <asm/ucontext.h>
 #include <asm/uaccess.h>
 #include <asm/cacheflush.h>
include/asm-frv/syscalls.h +37 -0
index e69de29..e2639f2 100644
@@ -0,0 +1,37 @@
+/*
+ * 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_FRV_SYSCALLS_H
+#define _ASM_FRV_SYSCALLS_H
+
+/* kernel/process.c */
+asmlinkage int sys_fork(void);
+asmlinkage int sys_vfork(void);
+asmlinkage int sys_clone(unsigned long, unsigned long, int __user *,
+			 int __user *, int __user *);
+asmlinkage int sys_execve(char __user *, char __user * __user *,
+			  char __user * __user *);
+
+/* kernel/signal.c */
+asmlinkage int sys_sigsuspend(int, int, old_sigset_t);
+asmlinkage int sys_sigaction(int, const struct old_sigaction __user *,
+			     struct old_sigaction __user *);
+asmlinkage int sys_sigaltstack(const stack_t __user *, stack_t __user *);
+asmlinkage int sys_sigreturn(void);
+asmlinkage int sys_rt_sigreturn(void);
+
+/* kernel/sys_frv.c */
+asmlinkage long sys_mmap2(unsigned long, unsigned long, unsigned long,
+			  unsigned long, unsigned long, unsigned long);
+asmlinkage long sys_ipc(unsigned long, unsigned long, unsigned long,
+			unsigned long, void __user *, unsigned long);
+
+#endif /* _ASM_FRV_SYSCALLS_H */
Signature · 1 line
1.5.5.1
#8 lore raw

PATCH 8/22 h8300: Introducing asm/syscalls.h

Declaring arch-dependent syscalls for h8300 architecture

---
 arch/h8300/kernel/process.c  |    1 +
 include/asm-h8300/syscalls.h |   33 +++++++++++++++++++++++++++++++++
 2 files changed, 34 insertions(+), 0 deletions(-)
arch/h8300/kernel/process.c +1 -0
index dfbe7ab..3529387 100644
@@ -38,6 +38,7 @@
 #include <linux/interrupt.h>
 #include <linux/reboot.h>
 #include <linux/fs.h>
+#include <linux/syscalls.h>
 
 #include <asm/uaccess.h>
 #include <asm/system.h>
include/asm-h8300/syscalls.h +33 -0
index e69de29..d021f52 100644
@@ -0,0 +1,33 @@
+/*
+ * 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_H8300_SYSCALLS_H
+#define _ASM_H8300_SYSCALLS_H
+
+/* kernel/process.c */
+asmlinkage int sys_execve(char *, char **, char **, int, ...);
+
+/* kernel/signal.c */
+asmlinkage int sys_sigaction(int, const struct old_sigaction *,
+			     struct old_sigaction *);
+asmlinkage int sys_sigaltstack(const stack_t *, stack_t *);
+
+/* kernel/sys_h8300.c */
+asmlinkage long sys_mmap2(unsigned long, unsigned long, unsigned long,
+			  unsigned long, unsigned long, unsigned long);
+struct mmap_arg_struct;
+asmlinkage int old_mmap(struct mmap_arg_struct *);
+struct sel_arg_struct;
+asmlinkage int old_select(struct sel_arg_struct *);
+asmlinkage int sys_ipc(uint, int, int, int, void *, long);
+asmlinkage int sys_cacheflush(unsigned long, int, int, unsigned long);
+
+#endif /* _ASM_H8300_SYSCALLS_H */
Signature · 1 line
1.5.5.1
#9 lore raw

PATCH 9/22 ia64: Introducing asm/syscalls.h

Declaring arch-dependent syscalls for ia64 architecture

---
 arch/ia64/kernel/process.c  |    1 +
 arch/ia64/kernel/signal.c   |    1 +
 include/asm-ia64/syscalls.h |   38 ++++++++++++++++++++++++++++++++++++++
 include/asm-ia64/unistd.h   |   14 +-------------
 4 files changed, 41 insertions(+), 13 deletions(-)
arch/ia64/kernel/process.c +1 -0
index 3ab8373..3b668a9 100644
@@ -28,6 +28,7 @@
 #include <linux/delay.h>
 #include <linux/kdebug.h>
 #include <linux/utsname.h>
+#include <linux/syscalls.h>
 
 #include <asm/cpu.h>
 #include <asm/delay.h>
arch/ia64/kernel/signal.c +1 -0
index 19c5a78..7b249da 100644
@@ -19,6 +19,7 @@
 #include <linux/binfmts.h>
 #include <linux/unistd.h>
 #include <linux/wait.h>
+#include <linux/syscalls.h>
 
 #include <asm/ia32.h>
 #include <asm/intrinsics.h>
include/asm-ia64/syscalls.h +38 -0
index e69de29..71af530 100644
@@ -0,0 +1,38 @@
+/*
+ * 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_IA64_SYSCALLS_H
+#define _ASM_IA64_SYSCALLS_H
+
+/* kernel/process.c */
+long sys_execve(char __user *, char __user * __user *,
+		 char __user * __user *, struct pt_regs *);
+
+/* kernel/signal.c */
+asmlinkage long sys_sigaltstack(const stack_t __user *, stack_t __user *,
+				long, long, long, long, long, long,
+				struct pt_regs);
+
+/* kernel/sys_ia64.c */
+asmlinkage unsigned long sys_getpagesize(void);
+asmlinkage long sys_pipe(void);
+asmlinkage unsigned long sys_mmap2(unsigned long, unsigned long,
+				   int, int, int, long);
+asmlinkage unsigned long sys_mmap(unsigned long, unsigned long,
+				  int, int, int, long);
+#ifndef CONFIG_PCI
+asmlinkage long sys_pciconfig_read(unsigned long, unsigned long,
+				   unsigned long, unsigned long, void *);
+asmlinkage long sys_pciconfig_write(unsigned long, unsigned long,
+				    unsigned long, unsigned long, void *);
+#endif /* CONFIG_PCI */
+
+#endif /* _ASM_IA64_SYSCALLS_H */
include/asm-ia64/unistd.h +1 -13
index e603147..6b0e8c6 100644
@@ -342,22 +342,10 @@
 #include <linux/types.h>
 #include <linux/linkage.h>
 #include <linux/compiler.h>
+#include <linux/syscalls.h>
 
 extern long __ia64_syscall (long a0, long a1, long a2, long a3, long a4, long nr);
 
-asmlinkage unsigned long sys_mmap(
-				unsigned long addr, unsigned long len,
-				int prot, int flags,
-				int fd, long off);
-asmlinkage unsigned long sys_mmap2(
-				unsigned long addr, unsigned long len,
-				int prot, int flags,
-				int fd, long pgoff);
-struct pt_regs;
-struct sigaction;
-long sys_execve(char __user *filename, char __user * __user *argv,
-			   char __user * __user *envp, struct pt_regs *regs);
-asmlinkage long sys_pipe(void);
 asmlinkage long sys_rt_sigaction(int sig,
 				 const struct sigaction __user *act,
 				 struct sigaction __user *oact,
Signature · 1 line
1.5.5.1
#10 lore raw

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

Declaring arch-dependent syscalls for m32r architecture

---
 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(-)
arch/m32r/kernel/process.c +1 -0
index a689e29..9f5335c 100644
@@ -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>
arch/m32r/kernel/signal.c +1 -0
index 1812454..4478893 100644
@@ -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>
include/asm-m32r/syscalls.h +49 -0

49 lines not on this page · raw message

Signature · 1 line
1.5.5.1
#11 lore raw

PATCH 11/22 m68k: Introducing asm/syscalls.h

Declaring arch-dependent syscalls for m68k architecture

---
 arch/m68k/kernel/process.c  |    1 +
 include/asm-m68k/syscalls.h |   35 +++++++++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+), 0 deletions(-)
arch/m68k/kernel/process.c +1 -0
index 7888cdf..41aa0c3 100644
@@ -26,6 +26,7 @@
 #include <linux/reboot.h>
 #include <linux/init_task.h>
 #include <linux/mqueue.h>
+#include <linux/syscalls.h>
 
 #include <asm/uaccess.h>
 #include <asm/system.h>
include/asm-m68k/syscalls.h +35 -0
index e69de29..13ad908 100644
@@ -0,0 +1,35 @@
+/*
+ * 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_M68K_SYSCALLS_H
+#define _ASM_M68K_SYSCALLS_H
+
+/* kernel/process.c */
+asmlinkage int sys_execve(char __user *, char __user * __user *,
+			  char __user * __user *);
+
+/* kernel/signal.c */
+asmlinkage int sys_sigaction(int, const struct old_sigaction __user *,
+			     struct old_sigaction __user *);
+asmlinkage int sys_sigaltstack(const stack_t __user *, stack_t __user *);
+
+/* kernel/sys_m68k.c */
+asmlinkage long sys_mmap2(unsigned long, unsigned long, unsigned long,
+			  unsigned long, unsigned long, unsigned long);
+struct mmap_arg_struct;
+asmlinkage int old_mmap(struct mmap_arg_struct __user *);
+struct sel_arg_struct;
+asmlinkage int old_select(struct sel_arg_struct __user *);
+asmlinkage int sys_ipc(uint, int, int, int, void __user *, long);
+asmlinkage int sys_cacheflush(unsigned long, int, int, unsigned long);
+asmlinkage int sys_getpagesize(void);
+
+#endif /* _ASM_M68K_SYSCALLS_H */
Signature · 1 line
1.5.5.1
#12 lore raw

PATCH 12/22 m68knommu: Introducing asm/syscalls.h

Declaring arch-dependent syscalls for m68knommu architecture

---
 arch/m68knommu/kernel/process.c  |    1 +
 include/asm-m68knommu/syscalls.h |   34 ++++++++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+), 0 deletions(-)
arch/m68knommu/kernel/process.c +1 -0
index 47502d5..30dea18 100644
@@ -29,6 +29,7 @@
 #include <linux/interrupt.h>
 #include <linux/reboot.h>
 #include <linux/fs.h>
+#include <linux/syscalls.h>
 
 #include <asm/uaccess.h>
 #include <asm/system.h>
include/asm-m68knommu/syscalls.h +34 -0
index e69de29..e4b5c95 100644
@@ -0,0 +1,34 @@
+/*
+ * 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_M68KNOMMU_SYSCALLS_H
+#define _ASM_M68KNOMMU_SYSCALLS_H
+
+/* kernel/process.c */
+asmlinkage int sys_execve(char *, char **, char **);
+
+/* kernel/signal.c */
+asmlinkage int sys_sigaction(int, const struct old_sigaction *,
+			     struct old_sigaction *);
+asmlinkage int sys_sigaltstack(const stack_t *, stack_t *);
+
+/* kernel/sys_m68k.c */
+asmlinkage long sys_mmap2(unsigned long, unsigned long, unsigned long,
+			  unsigned long, unsigned long, unsigned long);
+struct mmap_arg_struct;
+asmlinkage int old_mmap(struct mmap_arg_struct *);
+struct sel_arg_struct;
+asmlinkage int old_select(struct sel_arg_struct *);
+asmlinkage int sys_ipc(uint, int, int, int, void *, long);
+asmlinkage int sys_cacheflush(unsigned long, int, int, unsigned long);
+asmlinkage int sys_getpagesize(void);
+
+#endif /* _ASM_M68KNOMMU_SYSCALLS_H */
Signature · 1 line
1.5.5.1
#13 lore raw

PATCH 13/22 mips: Introducing asm/syscalls.h

Declaring arch-dependent syscalls for mips architecture

---
 arch/mips/kernel/linux32.c  |    1 -
 arch/mips/kernel/signal.c   |    2 +-
 arch/mips/kernel/signal32.c |    1 -
 arch/mips/kernel/syscall.c  |    1 -
 include/asm-mips/syscalls.h |   45 +++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 46 insertions(+), 4 deletions(-)
arch/mips/kernel/linux32.c +0 -1
index 65af3cc..710e4dc 100644
@@ -41,7 +41,6 @@
 #include <net/scm.h>
 
 #include <asm/compat-signal.h>
-#include <asm/sim.h>
 #include <asm/uaccess.h>
 #include <asm/mmu_context.h>
 #include <asm/mman.h>
arch/mips/kernel/signal.c +1 -1
index a4e106c..2bc1a37 100644
@@ -20,13 +20,13 @@
 #include <linux/unistd.h>
 #include <linux/compiler.h>
 #include <linux/uaccess.h>
+#include <linux/syscalls.h>
 
 #include <asm/abi.h>
 #include <asm/asm.h>
 #include <linux/bitops.h>
 #include <asm/cacheflush.h>
 #include <asm/fpu.h>
-#include <asm/sim.h>
 #include <asm/ucontext.h>
 #include <asm/cpu-features.h>
 #include <asm/war.h>
arch/mips/kernel/signal32.c +0 -1
index 572c610..c1b32e9 100644
@@ -27,7 +27,6 @@
 #include <asm/compat-signal.h>
 #include <linux/bitops.h>
 #include <asm/cacheflush.h>
-#include <asm/sim.h>
 #include <asm/ucontext.h>
 #include <asm/system.h>
 #include <asm/fpu.h>
arch/mips/kernel/syscall.c +0 -1
index af1bdc8..3505210 100644
@@ -35,7 +35,6 @@
 #include <asm/cacheflush.h>
 #include <asm/asm-offsets.h>
 #include <asm/signal.h>
-#include <asm/sim.h>
 #include <asm/shmparam.h>
 #include <asm/sysmips.h>
 #include <asm/uaccess.h>
include/asm-mips/syscalls.h +45 -0

45 lines not on this page · raw message

Signature · 1 line
1.5.5.1
#14 lore raw

PATCH 14/22 mn10300: Introducing asm/syscalls.h

Declaring arch-dependent syscalls for mn10300 architecture

---
 arch/mn10300/kernel/process.c  |    1 +
 arch/mn10300/kernel/signal.c   |    1 +
 include/asm-mn10300/syscalls.h |   41 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 43 insertions(+), 0 deletions(-)
arch/mn10300/kernel/process.c +1 -0
index b28c9a6..49a05f9 100644
@@ -26,6 +26,7 @@
 #include <linux/percpu.h>
 #include <linux/err.h>
 #include <linux/fs.h>
+#include <linux/syscalls.h>
 #include <asm/uaccess.h>
 #include <asm/pgtable.h>
 #include <asm/system.h>
arch/mn10300/kernel/signal.c +1 -0
index 841ca99..bf37ccc 100644
@@ -23,6 +23,7 @@
 #include <linux/tty.h>
 #include <linux/personality.h>
 #include <linux/suspend.h>
+#include <linux/syscalls.h>
 #include <asm/cacheflush.h>
 #include <asm/ucontext.h>
 #include <asm/uaccess.h>
include/asm-mn10300/syscalls.h +41 -0

41 lines not on this page · raw message

Signature · 1 line
1.5.5.1
#15 lore raw

PATCH 15/22 parisc: Introducing asm/syscalls.h

Declaring arch-dependent syscalls for parisc architecture

---
 arch/parisc/kernel/process.c  |    1 +
 arch/parisc/kernel/signal.c   |    1 +
 include/asm-parisc/syscalls.h |   36 ++++++++++++++++++++++++++++++++++++
 3 files changed, 38 insertions(+), 0 deletions(-)
arch/parisc/kernel/process.c +1 -0
index b80e02a..9a73fcd 100644
@@ -46,6 +46,7 @@
 #include <linux/stddef.h>
 #include <linux/unistd.h>
 #include <linux/kallsyms.h>
+#include <linux/syscalls.h>
 
 #include <asm/io.h>
 #include <asm/asm-offsets.h>
arch/parisc/kernel/signal.c +1 -0
index 06213d1..b10cade 100644
@@ -25,6 +25,7 @@
 #include <linux/stddef.h>
 #include <linux/compat.h>
 #include <linux/elf.h>
+#include <linux/syscalls.h>
 #include <asm/ucontext.h>
 #include <asm/rt_sigframe.h>
 #include <asm/uaccess.h>
include/asm-parisc/syscalls.h +36 -0
index e69de29..0de8837 100644
@@ -0,0 +1,36 @@
+/*
+ * 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_PARISC_SYSCALLS_H
+#define _ASM_PARISC_SYSCALLS_H
+
+/* kernel/process.c */
+int sys_clone(unsigned long, unsigned long, struct pt_regs *);
+int sys_vfork(struct pt_regs *);
+asmlinkage int sys_execve(struct pt_regs *);
+
+/* kernel/signal.c */
+void sys_rt_sigreturn(struct pt_regs *, int);
+
+/* kernel/sys_parisc.c */
+asmlinkage unsigned long sys_mmap2(unsigned long, unsigned long,
+				   unsigned long, unsigned long,
+				   unsigned long, unsigned long);
+asmlinkage unsigned long sys_mmap(unsigned long, unsigned long,
+				  unsigned long, unsigned long,
+				  unsigned long, unsigned long);
+#ifdef CONFIG_64BIT
+asmlinkage long sys_truncate64(const char __user *, unsigned long);
+asmlinkage long sys_ftruncate64(unsigned int, unsigned long);
+asmlinkage long sys_fcntl64(unsigned int, unsigned int, unsigned long);
+#endif
+
+#endif /* _ASM_PARISC_SYSCALLS_H */
Signature · 1 line
1.5.5.1
#16 lore raw

PATCH 16/22 s390: Introducing asm/syscalls.h

Declaring arch-dependent syscalls for s390 architecture

---
 arch/s390/kernel/entry.h    |   18 ------------------
 arch/s390/kernel/process.c  |    1 +
 arch/s390/kernel/signal.c   |    1 +
 arch/s390/mm/fault.c        |    1 +
 include/asm-s390/syscalls.h |   38 ++++++++++++++++++++++++++++++++++++++
 5 files changed, 41 insertions(+), 18 deletions(-)
arch/s390/kernel/entry.h +0 -18
index 6b18963..c8b5dfd 100644
@@ -25,36 +25,18 @@ void __init startup_init(void);
 void die(const char * str, struct pt_regs * regs, long err);
 
 struct new_utsname;
-struct mmap_arg_struct;
 struct fadvise64_64_args;
-struct old_sigaction;
-struct sel_arg_struct;
 
 long sys_pipe(unsigned long __user *fildes);
-long sys_mmap2(struct mmap_arg_struct __user  *arg);
-long old_mmap(struct mmap_arg_struct __user *arg);
-long sys_ipc(uint call, int first, unsigned long second,
-	     unsigned long third, void __user *ptr);
 long s390x_newuname(struct new_utsname __user *name);
 long s390x_personality(unsigned long personality);
 long s390_fadvise64(int fd, u32 offset_high, u32 offset_low,
 		    size_t len, int advice);
 long s390_fadvise64_64(struct fadvise64_64_args __user *args);
 long s390_fallocate(int fd, int mode, loff_t offset, u32 len_high, u32 len_low);
-long sys_fork(void);
-long sys_clone(void);
-long sys_vfork(void);
 void execve_tail(void);
-long sys_execve(void);
-int sys_sigsuspend(int history0, int history1, old_sigset_t mask);
-long sys_sigaction(int sig, const struct old_sigaction __user *act,
-		   struct old_sigaction __user *oact);
-long sys_sigaltstack(const stack_t __user *uss, stack_t __user *uoss);
-long sys_sigreturn(void);
-long sys_rt_sigreturn(void);
 long sys32_sigreturn(void);
 long sys32_rt_sigreturn(void);
-long old_select(struct sel_arg_struct __user *arg);
 long sys_ptrace(long request, long pid, long addr, long data);
 
 #endif /* _ENTRY_H */
arch/s390/kernel/process.c +1 -0
index 85defd0..5f6d7a8 100644
@@ -38,6 +38,7 @@
 #include <linux/utsname.h>
 #include <linux/tick.h>
 #include <linux/elfcore.h>
+#include <linux/syscalls.h>
 #include <asm/uaccess.h>
 #include <asm/pgtable.h>
 #include <asm/system.h>
arch/s390/kernel/signal.c +1 -0
index b976820..c73b369 100644
@@ -24,6 +24,7 @@
 #include <linux/tty.h>
 #include <linux/personality.h>
 #include <linux/binfmts.h>
+#include <linux/syscalls.h>
 #include <asm/ucontext.h>
 #include <asm/uaccess.h>
 #include <asm/lowcore.h>
arch/s390/mm/fault.c +1 -0
index 4d53720..a5c5f66 100644
@@ -29,6 +29,7 @@
 #include <linux/kprobes.h>
 #include <linux/uaccess.h>
 #include <linux/hugetlb.h>
+#include <linux/syscalls.h>
 #include <asm/system.h>
 #include <asm/pgtable.h>
 #include <asm/s390_ext.h>
include/asm-s390/syscalls.h +38 -0
index e69de29..439d6f8 100644
@@ -0,0 +1,38 @@
+/*
+ * 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_S390_SYSCALLS_H
+#define _ASM_S390_SYSCALLS_H
+
+/* kernel/process.c */
+asmlinkage long sys_fork(void);
+asmlinkage long sys_clone(void);
+asmlinkage long sys_vfork(void);
+asmlinkage long sys_execve(void);
+
+/* kernel/signal.c */
+asmlinkage int sys_sigsuspend(int, int, old_sigset_t);
+asmlinkage long sys_sigaction(int,
+			      const struct old_sigaction __user *,
+			      struct old_sigaction __user *);
+asmlinkage long sys_sigaltstack(const stack_t __user *,
+				stack_t __user *);
+asmlinkage long sys_sigreturn(void);
+asmlinkage long sys_rt_sigreturn(void);
+
+/* kernel/sys_s390.c */
+struct mmap_arg_struct;
+asmlinkage long sys_mmap2(struct mmap_arg_struct __user  *);
+asmlinkage long old_mmap(struct mmap_arg_struct __user *);
+asmlinkage long sys_ipc(uint, int, unsigned long,
+			unsigned long, void __user *);
+
+#endif /* _ASM_S390_SYSCALLS_H */
Signature · 1 line
1.5.5.1
#17 lore raw

PATCH 17/22 sh: Introducing asm/syscalls.h

Declaring arch-dependent syscalls for sh architecture

---
 arch/sh/kernel/process_32.c |    1 +
 arch/sh/kernel/process_64.c |    1 +
 arch/sh/kernel/signal_32.c  |    1 +
 arch/sh/kernel/signal_64.c  |    1 +
 include/asm-sh/syscalls.h   |   88 +++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 92 insertions(+), 0 deletions(-)
arch/sh/kernel/process_32.c +1 -0
index b98e37a..b6fb73e 100644
@@ -20,6 +20,7 @@
 #include <linux/reboot.h>
 #include <linux/fs.h>
 #include <linux/preempt.h>
+#include <linux/syscalls.h>
 #include <asm/uaccess.h>
 #include <asm/mmu_context.h>
 #include <asm/pgalloc.h>
arch/sh/kernel/process_64.c +1 -0
index 0283d81..f0b249f 100644
@@ -25,6 +25,7 @@
 #include <linux/module.h>
 #include <linux/proc_fs.h>
 #include <linux/io.h>
+#include <linux/syscalls.h>
 #include <asm/uaccess.h>
 #include <asm/pgtable.h>
 #include <asm/mmu_context.h>
arch/sh/kernel/signal_32.c +1 -0
index f311551..852c81b 100644
@@ -24,6 +24,7 @@
 #include <linux/binfmts.h>
 #include <linux/freezer.h>
 #include <linux/io.h>
+#include <linux/syscalls.h>
 #include <asm/system.h>
 #include <asm/ucontext.h>
 #include <asm/uaccess.h>
arch/sh/kernel/signal_64.c +1 -0
index 552eb81..b2be648 100644
@@ -22,6 +22,7 @@
 #include <linux/ptrace.h>
 #include <linux/unistd.h>
 #include <linux/stddef.h>
+#include <linux/syscalls.h>
 #include <asm/ucontext.h>
 #include <asm/uaccess.h>
 #include <asm/pgtable.h>
include/asm-sh/syscalls.h +88 -0

88 lines not on this page · raw message

Signature · 1 line
1.5.5.1
#18 lore raw

PATCH 18/22 sparc: Introducing asm/syscalls.h

Declaring arch-dependent syscalls for sparc architecture

---
 arch/sparc/kernel/signal.c   |    1 +
 include/asm-sparc/syscalls.h |   30 ++++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+), 0 deletions(-)
arch/sparc/kernel/signal.c +1 -0
index 3fd1df9..6fe2da5 100644
@@ -18,6 +18,7 @@
 #include <linux/smp.h>
 #include <linux/binfmts.h>	/* do_coredum */
 #include <linux/bitops.h>
+#include <linux/syscalls.h>
 
 #include <asm/uaccess.h>
 #include <asm/ptrace.h>
include/asm-sparc/syscalls.h +30 -0
index e69de29..65c25cd 100644
@@ -0,0 +1,30 @@
+/*
+ * 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_SPARC_SYSCALLS_H
+#define _ASM_SPARC_SYSCALLS_H
+
+/* kernel/signal.c */
+asmlinkage int sys_sigsuspend(old_sigset_t);
+
+/* kernel/sys_sparc.c */
+asmlinkage unsigned long sys_getpagesize(void);
+asmlinkage int sys_ipc(uint, int, int, int, void __user *, long);
+asmlinkage long sys_mmap2(unsigned long, unsigned long, unsigned long,
+			  unsigned long, unsigned long, unsigned long);
+asmlinkage long sys_mmap(unsigned long, unsigned long, unsigned long,
+			 unsigned long, unsigned long, unsigned long);
+asmlinkage long sys_rt_sigaction(int, const struct sigaction __user *,
+				 struct sigaction __user *,
+				 void __user *, size_t);
+asmlinkage int sys_getdomainname(char __user *, int);
+
+#endif /* _ASM_SPARC_SYSCALLS_H */
Signature · 1 line
1.5.5.1
#19 lore raw

PATCH 19/22 um: Introducing asm/syscalls.h

Declaring arch-dependent syscalls for um architecture

---
 arch/um/kernel/exec.c     |    1 +
 arch/um/kernel/signal.c   |    3 +--
 arch/um/kernel/syscall.c  |    1 +
 include/asm-um/syscalls.h |   32 ++++++++++++++++++++++++++++++++
 4 files changed, 35 insertions(+), 2 deletions(-)
arch/um/kernel/exec.c +1 -0
index f5d7f45..cd9fa46 100644
@@ -8,6 +8,7 @@
 #include "linux/smp_lock.h"
 #include "linux/ptrace.h"
 #include "linux/sched.h"
+#include "linux/syscalls.h"
 #include "asm/current.h"
 #include "asm/processor.h"
 #include "asm/uaccess.h"
arch/um/kernel/signal.c +1 -2
index b0fce72..9a72afc 100644
@@ -6,8 +6,7 @@
 #include <linux/module.h>
 #include <linux/ptrace.h>
 #include <linux/sched.h>
-#include <asm/siginfo.h>
-#include <asm/signal.h>
+#include <linux/syscalls.h>
 #include <asm/unistd.h>
 #include "frame_kern.h"
 #include "kern_util.h"
arch/um/kernel/syscall.c +1 -0
index 128ee85..0c35194 100644
@@ -8,6 +8,7 @@
 #include "linux/mm.h"
 #include "linux/sched.h"
 #include "linux/utsname.h"
+#include "linux/syscalls.h"
 #include "asm/current.h"
 #include "asm/mman.h"
 #include "asm/uaccess.h"
include/asm-um/syscalls.h +32 -0
index e69de29..2124282 100644
@@ -0,0 +1,32 @@
+/*
+ * 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_UM_SYSCALLS_H
+#define _ASM_UM_SYSCALLS_H
+
+/* kernel/exec.c */
+long sys_execve(char __user *, char __user *__user *,
+		char __user * __user *);
+
+/* kernel/signal.c */
+long sys_sigsuspend(int, int, old_sigset_t);
+long sys_sigaltstack(const stack_t __user *, stack_t __user *);
+
+/* kernel/syscall.c */
+long sys_fork(void);
+long sys_vfork(void);
+long sys_mmap2(unsigned long, unsigned long, unsigned long,
+	       unsigned long, unsigned long, unsigned long);
+long old_mmap(unsigned long, unsigned long, unsigned long,
+	      unsigned long, unsigned long, unsigned long);
+long sys_uname(struct old_utsname __user *);
+
+#endif /* _ASM_UM_SYSCALLS_H */
Signature · 14 lines
1.5.5.1




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#20 lore raw

PATCH 20/22 v850: Introducing asm/syscalls.h

Declaring arch-dependent syscalls for v850 architecture

---
 arch/v850/kernel/process.c  |    1 +
 arch/v850/kernel/signal.c   |    1 +
 include/asm-v850/syscalls.h |   34 ++++++++++++++++++++++++++++++++++
 3 files changed, 36 insertions(+), 0 deletions(-)
arch/v850/kernel/process.c +1 -0
index e4a4b8e..4ea0783 100644
@@ -23,6 +23,7 @@
 #include <linux/user.h>
 #include <linux/a.out.h>
 #include <linux/reboot.h>
+#include <linux/syscalls.h>
 
 #include <asm/uaccess.h>
 #include <asm/system.h>
arch/v850/kernel/signal.c +1 -0
index bf166e7..603c13e 100644
@@ -26,6 +26,7 @@
 #include <linux/stddef.h>
 #include <linux/personality.h>
 #include <linux/tty.h>
+#include <linux/syscalls.h>
 
 #include <asm/ucontext.h>
 #include <asm/uaccess.h>
include/asm-v850/syscalls.h +34 -0
index e69de29..5c7f0eb 100644
@@ -0,0 +1,34 @@
+/*
+ * 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_V850_SYSCALLS_H
+#define _ASM_V850_SYSCALLS_H
+
+/* kernel/process.c */
+int sys_execve(char *, char **, char **, struct pt_regs *);
+
+/* kernel/signal.c */
+asmlinkage int sys_sigsuspend(old_sigset_t, struct pt_regs *);
+asmlinkage int sys_rt_sigsuspend(sigset_t *, size_t, struct pt_regs *);
+asmlinkage int sys_sigaction(int, const struct old_sigaction *,
+			     struct old_sigaction *);
+asmlinkage int sys_sigaltstack(const stack_t *, stack_t *, struct pt_regs *);
+asmlinkage int sys_sigreturn(struct pt_regs *);
+asmlinkage int sys_rt_sigreturn(struct pt_regs *);
+
+/* kernel/syscalls.c */
+int sys_ipc(uint, int, int, int, void *, long);
+unsigned long sys_mmap2(unsigned long, size_t, unsigned long,
+			unsigned long, unsigned long, unsigned long);
+unsigned long sys_mmap(unsigned long, size_t, unsigned long,
+		       unsigned long, unsigned long, off_t);
+
+#endif /* _ASM_V850_SYSCALLS_H */
Signature · 1 line
1.5.5.1
#21 lore raw

PATCH 21/22 x86: Introducing asm/syscalls.h

Declaring arch-dependent syscalls for x86 architecture

---
 arch/x86/kernel/ldt.c        |    1 +
 arch/x86/kernel/process_32.c |    1 +
 arch/x86/kernel/process_64.c |    1 +
 arch/x86/kernel/signal_32.c  |    1 +
 arch/x86/kernel/signal_64.c  |    1 +
 arch/x86/kernel/tls.c        |    1 +
 arch/x86/kernel/vm86_32.c    |    1 +
 include/asm-x86/syscalls.h   |   83 ++++++++++++++++++++++++++++++++++++++++++
 8 files changed, 90 insertions(+), 0 deletions(-)
arch/x86/kernel/ldt.c +1 -0
index a844957..047a021 100644
@@ -12,6 +12,7 @@
 #include <linux/mm.h>
 #include <linux/smp.h>
 #include <linux/vmalloc.h>
+#include <linux/syscalls.h>
 
 #include <asm/uaccess.h>
 #include <asm/system.h>
arch/x86/kernel/process_32.c +1 -0
index 0c3927a..8e46d82 100644
@@ -37,6 +37,7 @@
 #include <linux/tick.h>
 #include <linux/percpu.h>
 #include <linux/prctl.h>
+#include <linux/syscalls.h>
 
 #include <asm/uaccess.h>
 #include <asm/pgtable.h>
arch/x86/kernel/process_64.c +1 -0
index a8e5362..f99381b 100644
@@ -37,6 +37,7 @@
 #include <linux/kdebug.h>
 #include <linux/tick.h>
 #include <linux/prctl.h>
+#include <linux/syscalls.h>
 
 #include <asm/uaccess.h>
 #include <asm/pgtable.h>
arch/x86/kernel/signal_32.c +1 -0
index d923736..954a3b8 100644
@@ -20,6 +20,7 @@
 #include <linux/elf.h>
 #include <linux/smp.h>
 #include <linux/mm.h>
+#include <linux/syscalls.h>
 
 #include <asm/processor.h>
 #include <asm/ucontext.h>
arch/x86/kernel/signal_64.c +1 -0
index e53b267..12c0ab5 100644
@@ -19,6 +19,7 @@
 #include <linux/stddef.h>
 #include <linux/personality.h>
 #include <linux/compiler.h>
+#include <linux/syscalls.h>
 #include <asm/processor.h>
 #include <asm/ucontext.h>
 #include <asm/uaccess.h>
arch/x86/kernel/tls.c +1 -0
index ab6bf37..90bc24c 100644
@@ -3,6 +3,7 @@
 #include <linux/sched.h>
 #include <linux/user.h>
 #include <linux/regset.h>
+#include <linux/syscalls.h>
 
 #include <asm/uaccess.h>
 #include <asm/desc.h>
arch/x86/kernel/vm86_32.c +1 -0
index 38f566f..d77e312 100644
@@ -41,6 +41,7 @@
 #include <linux/ptrace.h>
 #include <linux/audit.h>
 #include <linux/stddef.h>
+#include <linux/syscalls.h>
 
 #include <asm/uaccess.h>
 #include <asm/io.h>
include/asm-x86/syscalls.h +83 -0

83 lines not on this page · raw message

Signature · 1 line
1.5.5.1
#22 lore raw

PATCH 22/22 xtensa: Introducing asm/syscalls.h

Declaring arch-dependent syscalls for xtensa architecture

---
 include/asm-xtensa/syscalls.h |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)
include/asm-xtensa/syscalls.h +17 -0
index e69de29..4aa949e 100644
@@ -0,0 +1,17 @@
+/*
+ * 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_XTENSA_SYSCALLS_H
+#define _ASM_XTENSA_SYSCALLS_H
+
+/* define arch dependent syscalls here */
+
+#endif /* _ASM_XTENSA_SYSCALLS_H */
Signature · 1 line
1.5.5.1
#23 lore raw

Re: [PATCH 9/22] ia64: Introducing asm/syscalls.h

In reply to Jaswinder Singh

include/asm-ia64/syscalls.h line 36

Quoted 7 lines · Jaswinder Singh

Declaring arch-dependent syscalls for ia64 architecture

include/asm-ia64/syscalls.h +6 -0
+#ifndef CONFIG_PCI
+asmlinkage long sys_pciconfig_read(unsigned long, unsigned long,
+				   unsigned long, unsigned long, void *);
+asmlinkage long sys_pciconfig_write(unsigned long, unsigned long,
+				    unsigned long, unsigned long, void *);
+#endif /* CONFIG_PCI */

These are already declared in linux/syscalls.h

And frankly, we should just make these return -ENOSYS always. Any software that uses them is stuffed on machines with multiple domains.

Signature · 4 lines
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
#24 lore raw

Re: [PATCH 9/22] ia64: Introducing asm/syscalls.h

Hello Matthew,

Quoted 11 lines · Matthew Wilcox

Review

Quoted 7 lines · Jaswinder Singh

Declaring arch-dependent syscalls for ia64 architecture

(quoted diff) +6 -0
+#ifndef CONFIG_PCI
+asmlinkage long sys_pciconfig_read(unsigned long, unsigned long,
+				   unsigned long, unsigned long, void *);
+asmlinkage long sys_pciconfig_write(unsigned long, unsigned long,
+				    unsigned long, unsigned long, void *);
+#endif /* CONFIG_PCI */

These are already declared in linux/syscalls.h

Quoted 3 lines

And frankly, we should just make these return -ENOSYS always. Any software that uses them is stuffed on machines with multiple domains.

include/asm-ia64/syscalls.h +0 -6
index 71af530..8799e14 100644
@@ -28,11 +28,5 @@ asmlinkage unsigned long sys_mmap2(unsigned long, unsigned long,
 				   int, int, int, long);
 asmlinkage unsigned long sys_mmap(unsigned long, unsigned long,
 				  int, int, int, long);
-#ifndef CONFIG_PCI
-asmlinkage long sys_pciconfig_read(unsigned long, unsigned long,
-				   unsigned long, unsigned long, void *);
-asmlinkage long sys_pciconfig_write(unsigned long, unsigned long,
-				    unsigned long, unsigned long, void *);
-#endif /* CONFIG_PCI */
 
 #endif /* _ASM_IA64_SYSCALLS_H */

Thank you,

Jaswinder Singh.

#25 lore raw

Re: [PATCH 4/22] avr32: Introducing asm/syscalls.h

In reply to Jaswinder Singh
Quoted 1 line · Jaswinder Singh

+asmlinkage int sys_fork(struct pt_regs);

This should be "struct pt_regs *"

include/asm-avr32/syscalls.h line 20

Quoted 4 lines
include/asm-avr32/syscalls.h +4 -0
+asmlinkage int sys_clone(unsigned long, unsigned long,
+			 unsigned long, unsigned long,
+			 struct pt_regs *);
+asmlinkage int sys_vfork(struct pt_regs);

Same thing here.

Other than that, looks good to me.

Haavard

#26 lore raw

Re: [PATCH 4/22] avr32: Introducing asm/syscalls.h

Hello Haavard,

Quoted 5 lines · Haavard Skinnemoen
Quoted 1 line · Jaswinder Singh

+asmlinkage int sys_fork(struct pt_regs);

This should be "struct pt_regs *"

Quoted 9 lines

include/asm-avr32/syscalls.h line 20

Quoted 4 lines
include/asm-avr32/syscalls.h +4 -0
+asmlinkage int sys_clone(unsigned long, unsigned long,
+			 unsigned long, unsigned long,
+			 struct pt_regs *);
+asmlinkage int sys_vfork(struct pt_regs);

Same thing here.

Other than that, looks good to me.

If you want to merge this patch in your tree then let me know.

I will fix above issues and send updated patch for avr32 tree.

Thank you,

Jaswinder Singh.

#27 lore raw

Re: [PATCH 4/22] avr32: Introducing asm/syscalls.h

Quoted 1 line · Jaswinder Singh

If you want to merge this patch in your tree then let me know.

Well, I'd rather have it go in along with the others through mm or something. But if it doesn't depend on anything else, I can take it if it makes things easier.

Quoted 1 line

I will fix above issues and send updated patch for avr32 tree.

That'd be great, thanks.

Haavard

#28 lore raw
In reply to Jaswinder Singh
Quoted 2 lines · Jaswinder Singh

The following series of patches introduce asm/syscalls.h in various architectures.

Copyright for a bunch of prototypes?

All those /* kernel/signal.c */ comments are generally stupid and useless, so no point adding even for functions that rarely move (syscalls).

Of course, there is no explanation why files are being added.

#29 lore raw

Hello Alexey,

Quoted 6 lines · Alexey Dobriyan
Quoted 2 lines · Jaswinder Singh

The following series of patches introduce asm/syscalls.h in various architectures.

Copyright for a bunch of prototypes?

So according to you, there _should_ be no copyright for header files. If this is the case, then remove it, I have no objections :)

Quoted 6 lines

All those /* kernel/signal.c */ comments are generally stupid and useless, so no point adding even for functions that rarely move (syscalls).

Of course, there is no explanation why files are being added.

It may be useless for you but it looks useful for me.
If you go though all syscalls patches only then you will figure it out syscalls are moving in many files for many architecture.

There can be many reasons to add syscalls.h, few of them are :-
1. Declaring syscalls functions before they get used is a nice habit and will quite also quiet sparse.

2. Declaring all arch dependent syscalls under one roof is nice for future enhancement for kernel developers as they can see what is defined in other architectures and try to follow same prototype as far as possible, Then it will be really useful for everyone. And then we can move common arch dependent syscalls in one place.

3. Declaring all arch dependent syscalls under one roof is nice for user for reference purpose.

Thank you,

Jaswinder Singh.

#30 lore raw
Quoted 8 lines · Jaswinder Singh

It may be useless for you but it looks useful for me.
If you go though all syscalls patches only then you will figure it out syscalls are moving in many files for many architecture.

There can be many reasons to add syscalls.h, few of them are :-
1. Declaring syscalls functions before they get used is a nice habit and will quite also quiet sparse.

Quoted 8 lines

2. Declaring all arch dependent syscalls under one roof is nice for future enhancement for kernel developers as they can see what is defined in other architectures and try to follow same prototype as far as possible, Then it will be really useful for everyone. And then we can move common arch dependent syscalls in one place.

3. ???Declaring all arch dependent syscalls under one roof is nice for user for reference purpose.

I think it makes more sense to add them to linux/syscall.h, possibly with comments mentioning which architectures implement them.

If there are architectures with different prototypes for the same syscall, using an ifdef CONFIG_(arch) is /better/ annotation that having them in different header files.

Signature · 4 lines
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
#31 lore raw

Hello Matthew,

Quoted 7 lines · Matthew Wilcox

I think it makes more sense to add them to linux/syscall.h, possibly with comments mentioning which architectures implement them.

If there are architectures with different prototypes for the same syscall, using an ifdef CONFIG_(arch) is /better/ annotation that having them in different header files.

linux/syscalls.h is Linux syscall interfaces (non-arch-specific)

So asm/syscalls.h is Linux syscall interfaces (arch-specific)

And if we add all arch dependent syscalls.h in linux/syscalls then it will be very complex and do not look nice, for example sys_fork is keep on changing for many architecture.

Thank you,

Jaswinder Singh.

#32 lore raw
Quoted 3 lines · Jaswinder Singh

???linux/syscalls.h is Linux syscall interfaces (non-arch-specific)

So asm/syscalls.h is ???Linux syscall interfaces (arch-specific)

That's how you see it.

Quoted 3 lines

And if we add all arch dependent syscalls.h in linux/syscalls then it will be very complex and do not look nice, for example sys_fork is keep on changing for many architecture.

sys_fork() does seem to be the worst case scenario. I suspect there's similar ones (clone?). I still think it's worth adding them all to linux/syscalls.h.

Signature · 4 lines
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
#33 lore raw

Hello Matthew,

Quoted 4 lines · Matthew Wilcox

sys_fork() does seem to be the worst case scenario. I suspect there's similar ones (clone?). I still think it's worth adding them all to linux/syscalls.h.

I tried my best to make things simpler. I also tried this in :- [PATCH 17/22] sh: Introducing asm/syscalls.h
[PATCH 21/22] x86: Introducing asm/syscalls.h

For same architecture it looks complex for 32 and 64 bit.

You can Imagine how linux/syscalls.h will look if we add all architectures in it.

And you can imagine what will be size of linux/syscalls.h. As more than 60% of arch dependent syscalls have totally different prototypes.

Thank you,

Jaswinder Singh.