xref: /OK3568_Linux_fs/kernel/arch/sparc/include/uapi/asm/unistd.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * System calls under the Sparc.
4*4882a593Smuzhiyun  *
5*4882a593Smuzhiyun  * Don't be scared by the ugly clobbers, it is the only way I can
6*4882a593Smuzhiyun  * think of right now to force the arguments into fixed registers
7*4882a593Smuzhiyun  * before the trap into the system call with gcc 'asm' statements.
8*4882a593Smuzhiyun  *
9*4882a593Smuzhiyun  * Copyright (C) 1995, 2007 David S. Miller (davem@davemloft.net)
10*4882a593Smuzhiyun  *
11*4882a593Smuzhiyun  * SunOS compatibility based upon preliminary work which is:
12*4882a593Smuzhiyun  *
13*4882a593Smuzhiyun  * Copyright (C) 1995 Adrian M. Rodriguez (adrian@remus.rutgers.edu)
14*4882a593Smuzhiyun  */
15*4882a593Smuzhiyun #ifndef _UAPI_SPARC_UNISTD_H
16*4882a593Smuzhiyun #define _UAPI_SPARC_UNISTD_H
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun #ifndef __32bit_syscall_numbers__
19*4882a593Smuzhiyun #ifndef __arch64__
20*4882a593Smuzhiyun #define __32bit_syscall_numbers__
21*4882a593Smuzhiyun #endif
22*4882a593Smuzhiyun #endif
23*4882a593Smuzhiyun 
24*4882a593Smuzhiyun #ifdef __arch64__
25*4882a593Smuzhiyun #include <asm/unistd_64.h>
26*4882a593Smuzhiyun #else
27*4882a593Smuzhiyun #include <asm/unistd_32.h>
28*4882a593Smuzhiyun #endif
29*4882a593Smuzhiyun 
30*4882a593Smuzhiyun /* Bitmask values returned from kern_features system call.  */
31*4882a593Smuzhiyun #define KERN_FEATURE_MIXED_MODE_STACK	0x00000001
32*4882a593Smuzhiyun 
33*4882a593Smuzhiyun #endif /* _UAPI_SPARC_UNISTD_H */
34