Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * System calls under the Sparc.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Don't be scared by the ugly clobbers, it is the only way I can
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * think of right now to force the arguments into fixed registers
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  * before the trap into the system call with gcc 'asm' statements.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9)  * Copyright (C) 1995, 2007 David S. Miller (davem@davemloft.net)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)  * SunOS compatibility based upon preliminary work which is:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)  * Copyright (C) 1995 Adrian M. Rodriguez (adrian@remus.rutgers.edu)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #ifndef _SPARC_UNISTD_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #define _SPARC_UNISTD_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #include <uapi/asm/unistd.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #define NR_syscalls	__NR_syscalls
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #ifdef __32bit_syscall_numbers__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #define __NR_time		231 /* Linux sparc32                               */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #define __ARCH_WANT_NEW_STAT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define __ARCH_WANT_OLD_READDIR
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #define __ARCH_WANT_STAT64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #define __ARCH_WANT_SYS_ALARM
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #define __ARCH_WANT_SYS_GETHOSTNAME
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #define __ARCH_WANT_SYS_PAUSE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #define __ARCH_WANT_SYS_SIGNAL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #define __ARCH_WANT_SYS_TIME32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #define __ARCH_WANT_SYS_UTIME32
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #define __ARCH_WANT_SYS_WAITPID
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #define __ARCH_WANT_SYS_SOCKETCALL
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #define __ARCH_WANT_SYS_FADVISE64
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #define __ARCH_WANT_SYS_GETPGRP
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #define __ARCH_WANT_SYS_NICE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) #define __ARCH_WANT_SYS_OLDUMOUNT
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #define __ARCH_WANT_SYS_SIGPENDING
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) #define __ARCH_WANT_SYS_SIGPROCMASK
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) #ifdef __32bit_syscall_numbers__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) #define __ARCH_WANT_SYS_IPC
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45) #else
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) #define __ARCH_WANT_SYS_TIME
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 47) #define __ARCH_WANT_SYS_UTIME
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 48) #define __ARCH_WANT_COMPAT_SYS_SENDFILE
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 49) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 50) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 51) #ifdef __32bit_syscall_numbers__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 52) /* Sparc 32-bit only has the "setresuid32", "getresuid32" variants,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 53)  * it never had the plain ones and there is no value to adding those
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 54)  * old versions into the syscall table.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 55)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 56) #define __IGNORE_setresuid
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 57) #define __IGNORE_getresuid
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 58) #define __IGNORE_setresgid
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 59) #define __IGNORE_getresgid
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 60) #endif
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 61) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 62) #endif /* _SPARC_UNISTD_H */