瀏覽代碼

avr32: Introducing asm/syscalls.h

Declaring arch-dependent syscalls for avr32 architecture

Signed-off-by: Jaswinder Singh <jaswinder@infradead.org>
Signed-off-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com>
Jaswinder Singh 17 年之前
父節點
當前提交
c80ce2d52b
共有 5 個文件被更改,包括 43 次插入0 次删除
  1. 1 0
      arch/avr32/kernel/process.c
  2. 1 0
      arch/avr32/kernel/signal.c
  3. 1 0
      arch/avr32/kernel/sys_avr32.c
  4. 1 0
      arch/avr32/mm/cache.c
  5. 39 0
      include/asm-avr32/syscalls.h

+ 1 - 0
arch/avr32/kernel/process.c

@@ -18,6 +18,7 @@
 
 
 #include <asm/sysreg.h>
 #include <asm/sysreg.h>
 #include <asm/ocd.h>
 #include <asm/ocd.h>
+#include <asm/syscalls.h>
 
 
 #include <mach/pm.h>
 #include <mach/pm.h>
 
 

+ 1 - 0
arch/avr32/kernel/signal.c

@@ -19,6 +19,7 @@
 
 
 #include <asm/uaccess.h>
 #include <asm/uaccess.h>
 #include <asm/ucontext.h>
 #include <asm/ucontext.h>
+#include <asm/syscalls.h>
 
 
 #define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP)))
 #define _BLOCKABLE (~(sigmask(SIGKILL) | sigmask(SIGSTOP)))
 
 

+ 1 - 0
arch/avr32/kernel/sys_avr32.c

@@ -13,6 +13,7 @@
 
 
 #include <asm/mman.h>
 #include <asm/mman.h>
 #include <asm/uaccess.h>
 #include <asm/uaccess.h>
+#include <asm/syscalls.h>
 
 
 asmlinkage long sys_mmap2(unsigned long addr, unsigned long len,
 asmlinkage long sys_mmap2(unsigned long addr, unsigned long len,
 			  unsigned long prot, unsigned long flags,
 			  unsigned long prot, unsigned long flags,

+ 1 - 0
arch/avr32/mm/cache.c

@@ -13,6 +13,7 @@
 #include <asm/cachectl.h>
 #include <asm/cachectl.h>
 #include <asm/processor.h>
 #include <asm/processor.h>
 #include <asm/uaccess.h>
 #include <asm/uaccess.h>
+#include <asm/syscalls.h>
 
 
 /*
 /*
  * If you attempt to flush anything more than this, you need superuser
  * If you attempt to flush anything more than this, you need superuser

+ 39 - 0
include/asm-avr32/syscalls.h

@@ -0,0 +1,39 @@
+/*
+ * 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.
+ */
+
+#ifndef _ASM_AVR32_SYSCALLS_H
+#define _ASM_AVR32_SYSCALLS_H
+
+#include <linux/compiler.h>
+#include <linux/linkage.h>
+#include <linux/types.h>
+#include <linux/signal.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 */