1*b2441318SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 */ 29acee190SStephen Rothwell /* 39acee190SStephen Rothwell * System calls under the Sparc. 49acee190SStephen Rothwell * 59acee190SStephen Rothwell * Don't be scared by the ugly clobbers, it is the only way I can 69acee190SStephen Rothwell * think of right now to force the arguments into fixed registers 79acee190SStephen Rothwell * before the trap into the system call with gcc 'asm' statements. 89acee190SStephen Rothwell * 99acee190SStephen Rothwell * Copyright (C) 1995, 2007 David S. Miller (davem@davemloft.net) 109acee190SStephen Rothwell * 119acee190SStephen Rothwell * SunOS compatibility based upon preliminary work which is: 129acee190SStephen Rothwell * 139acee190SStephen Rothwell * Copyright (C) 1995 Adrian M. Rodriguez (adrian@remus.rutgers.edu) 149acee190SStephen Rothwell */ 1554579826SDavid Howells #ifndef _SPARC_UNISTD_H 1654579826SDavid Howells #define _SPARC_UNISTD_H 179acee190SStephen Rothwell 1854579826SDavid Howells #include <uapi/asm/unistd.h> 1954579826SDavid Howells 209acee190SStephen Rothwell #ifdef __32bit_syscall_numbers__ 21a439fe51SSam Ravnborg #else 229acee190SStephen Rothwell #define __NR_time 231 /* Linux sparc32 */ 23a439fe51SSam Ravnborg #endif 249acee190SStephen Rothwell #define __ARCH_WANT_OLD_READDIR 259acee190SStephen Rothwell #define __ARCH_WANT_STAT64 269acee190SStephen Rothwell #define __ARCH_WANT_SYS_ALARM 279acee190SStephen Rothwell #define __ARCH_WANT_SYS_GETHOSTNAME 289acee190SStephen Rothwell #define __ARCH_WANT_SYS_PAUSE 299acee190SStephen Rothwell #define __ARCH_WANT_SYS_SIGNAL 309acee190SStephen Rothwell #define __ARCH_WANT_SYS_TIME 319acee190SStephen Rothwell #define __ARCH_WANT_SYS_UTIME 329acee190SStephen Rothwell #define __ARCH_WANT_SYS_WAITPID 339acee190SStephen Rothwell #define __ARCH_WANT_SYS_SOCKETCALL 349acee190SStephen Rothwell #define __ARCH_WANT_SYS_FADVISE64 359acee190SStephen Rothwell #define __ARCH_WANT_SYS_GETPGRP 369acee190SStephen Rothwell #define __ARCH_WANT_SYS_LLSEEK 379acee190SStephen Rothwell #define __ARCH_WANT_SYS_NICE 389acee190SStephen Rothwell #define __ARCH_WANT_SYS_OLDUMOUNT 399acee190SStephen Rothwell #define __ARCH_WANT_SYS_SIGPENDING 409acee190SStephen Rothwell #define __ARCH_WANT_SYS_SIGPROCMASK 41baed7fc9SChristoph Hellwig #ifdef __32bit_syscall_numbers__ 42baed7fc9SChristoph Hellwig #define __ARCH_WANT_SYS_IPC 43baed7fc9SChristoph Hellwig #else 449acee190SStephen Rothwell #define __ARCH_WANT_COMPAT_SYS_TIME 458f9c0119SCatalin Marinas #define __ARCH_WANT_COMPAT_SYS_SENDFILE 469acee190SStephen Rothwell #endif 479acee190SStephen Rothwell 489acee190SStephen Rothwell #endif /* _SPARC_UNISTD_H */ 49