Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * System calls under the Sparc.
0004  *
0005  * Don't be scared by the ugly clobbers, it is the only way I can
0006  * think of right now to force the arguments into fixed registers
0007  * before the trap into the system call with gcc 'asm' statements.
0008  *
0009  * Copyright (C) 1995, 2007 David S. Miller (davem@davemloft.net)
0010  *
0011  * SunOS compatibility based upon preliminary work which is:
0012  *
0013  * Copyright (C) 1995 Adrian M. Rodriguez (adrian@remus.rutgers.edu)
0014  */
0015 #ifndef _UAPI_SPARC_UNISTD_H
0016 #define _UAPI_SPARC_UNISTD_H
0017 
0018 #ifndef __32bit_syscall_numbers__
0019 #ifndef __arch64__
0020 #define __32bit_syscall_numbers__
0021 #endif
0022 #endif
0023 
0024 #ifdef __arch64__
0025 #include <asm/unistd_64.h>
0026 #else
0027 #include <asm/unistd_32.h>
0028 #endif
0029 
0030 /* Bitmask values returned from kern_features system call.  */
0031 #define KERN_FEATURE_MIXED_MODE_STACK   0x00000001
0032 
0033 #endif /* _UAPI_SPARC_UNISTD_H */