David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 1 | /* MN10300 System call number list |
| 2 | * |
| 3 | * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved. |
| 4 | * Written by David Howells (dhowells@redhat.com) |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or |
| 7 | * modify it under the terms of the GNU General Public Licence |
| 8 | * as published by the Free Software Foundation; either version |
| 9 | * 2 of the Licence, or (at your option) any later version. |
| 10 | */ |
| 11 | #ifndef _ASM_UNISTD_H |
| 12 | #define _ASM_UNISTD_H |
| 13 | |
David Howells | 3b2267e | 2012-10-10 12:10:10 +0100 | [diff] [blame] | 14 | #include <uapi/asm/unistd.h> |
David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 15 | |
David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 16 | |
Eric W. Biederman | 7b21fdd | 2011-05-27 19:28:27 -0700 | [diff] [blame] | 17 | #define NR_syscalls 340 |
David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 18 | |
| 19 | /* |
| 20 | * specify the deprecated syscalls we want to support on this arch |
| 21 | */ |
David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 22 | #define __ARCH_WANT_OLD_READDIR |
| 23 | #define __ARCH_WANT_OLD_STAT |
| 24 | #define __ARCH_WANT_STAT64 |
| 25 | #define __ARCH_WANT_SYS_ALARM |
| 26 | #define __ARCH_WANT_SYS_GETHOSTNAME |
Christoph Hellwig | baed7fc | 2010-03-10 15:21:18 -0800 | [diff] [blame] | 27 | #define __ARCH_WANT_SYS_IPC |
David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 28 | #define __ARCH_WANT_SYS_PAUSE |
| 29 | #define __ARCH_WANT_SYS_SGETMASK |
| 30 | #define __ARCH_WANT_SYS_SIGNAL |
| 31 | #define __ARCH_WANT_SYS_TIME |
| 32 | #define __ARCH_WANT_SYS_UTIME |
| 33 | #define __ARCH_WANT_SYS_WAITPID |
| 34 | #define __ARCH_WANT_SYS_SOCKETCALL |
| 35 | #define __ARCH_WANT_SYS_FADVISE64 |
| 36 | #define __ARCH_WANT_SYS_GETPGRP |
| 37 | #define __ARCH_WANT_SYS_LLSEEK |
| 38 | #define __ARCH_WANT_SYS_NICE |
| 39 | #define __ARCH_WANT_SYS_OLD_GETRLIMIT |
Christoph Hellwig | 5d0e528 | 2010-03-10 15:21:13 -0800 | [diff] [blame] | 40 | #define __ARCH_WANT_SYS_OLD_SELECT |
David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 41 | #define __ARCH_WANT_SYS_OLDUMOUNT |
| 42 | #define __ARCH_WANT_SYS_SIGPENDING |
| 43 | #define __ARCH_WANT_SYS_SIGPROCMASK |
Al Viro | 1ea2a01 | 2012-10-21 16:43:13 -0400 | [diff] [blame] | 44 | #define __ARCH_WANT_SYS_FORK |
| 45 | #define __ARCH_WANT_SYS_VFORK |
| 46 | #define __ARCH_WANT_SYS_CLONE |
David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 47 | |
| 48 | /* |
| 49 | * "Conditional" syscalls |
| 50 | * |
| 51 | * What we want is __attribute__((weak,alias("sys_ni_syscall"))), |
| 52 | * but it doesn't work on all toolchains, so we just do it by hand |
| 53 | */ |
| 54 | #ifndef cond_syscall |
| 55 | #define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall"); |
| 56 | #endif |
| 57 | |
David Howells | b920de1 | 2008-02-08 04:19:31 -0800 | [diff] [blame] | 58 | #endif /* _ASM_UNISTD_H */ |