xref: /openbmc/linux/arch/sparc/include/uapi/asm/unistd.h (revision 36800330)
16f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
254579826SDavid Howells /*
354579826SDavid Howells  * System calls under the Sparc.
454579826SDavid Howells  *
554579826SDavid Howells  * Don't be scared by the ugly clobbers, it is the only way I can
654579826SDavid Howells  * think of right now to force the arguments into fixed registers
754579826SDavid Howells  * before the trap into the system call with gcc 'asm' statements.
854579826SDavid Howells  *
954579826SDavid Howells  * Copyright (C) 1995, 2007 David S. Miller (davem@davemloft.net)
1054579826SDavid Howells  *
1154579826SDavid Howells  * SunOS compatibility based upon preliminary work which is:
1254579826SDavid Howells  *
1354579826SDavid Howells  * Copyright (C) 1995 Adrian M. Rodriguez (adrian@remus.rutgers.edu)
1454579826SDavid Howells  */
1554579826SDavid Howells #ifndef _UAPI_SPARC_UNISTD_H
1654579826SDavid Howells #define _UAPI_SPARC_UNISTD_H
1754579826SDavid Howells 
1854579826SDavid Howells #ifndef __32bit_syscall_numbers__
1954579826SDavid Howells #ifndef __arch64__
2054579826SDavid Howells #define __32bit_syscall_numbers__
2154579826SDavid Howells #endif
2254579826SDavid Howells #endif
2354579826SDavid Howells 
2436800330SFiroz Khan #ifdef __arch64__
2536800330SFiroz Khan #include <asm/unistd_64.h>
2654579826SDavid Howells #else
2736800330SFiroz Khan #include <asm/unistd_32.h>
2861257f56SFiroz Khan #endif
29517ffce4SDavid S. Miller 
30517ffce4SDavid S. Miller /* Bitmask values returned from kern_features system call.  */
31517ffce4SDavid S. Miller #define KERN_FEATURE_MIXED_MODE_STACK	0x00000001
3254579826SDavid Howells 
3354579826SDavid Howells #endif /* _UAPI_SPARC_UNISTD_H */
34