18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * System calls under the Sparc.
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Don't be scared by the ugly clobbers, it is the only way I can
68c2ecf20Sopenharmony_ci * think of right now to force the arguments into fixed registers
78c2ecf20Sopenharmony_ci * before the trap into the system call with gcc 'asm' statements.
88c2ecf20Sopenharmony_ci *
98c2ecf20Sopenharmony_ci * Copyright (C) 1995, 2007 David S. Miller (davem@davemloft.net)
108c2ecf20Sopenharmony_ci *
118c2ecf20Sopenharmony_ci * SunOS compatibility based upon preliminary work which is:
128c2ecf20Sopenharmony_ci *
138c2ecf20Sopenharmony_ci * Copyright (C) 1995 Adrian M. Rodriguez (adrian@remus.rutgers.edu)
148c2ecf20Sopenharmony_ci */
158c2ecf20Sopenharmony_ci#ifndef _UAPI_SPARC_UNISTD_H
168c2ecf20Sopenharmony_ci#define _UAPI_SPARC_UNISTD_H
178c2ecf20Sopenharmony_ci
188c2ecf20Sopenharmony_ci#ifndef __32bit_syscall_numbers__
198c2ecf20Sopenharmony_ci#ifndef __arch64__
208c2ecf20Sopenharmony_ci#define __32bit_syscall_numbers__
218c2ecf20Sopenharmony_ci#endif
228c2ecf20Sopenharmony_ci#endif
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci#ifdef __arch64__
258c2ecf20Sopenharmony_ci#include <asm/unistd_64.h>
268c2ecf20Sopenharmony_ci#else
278c2ecf20Sopenharmony_ci#include <asm/unistd_32.h>
288c2ecf20Sopenharmony_ci#endif
298c2ecf20Sopenharmony_ci
308c2ecf20Sopenharmony_ci/* Bitmask values returned from kern_features system call.  */
318c2ecf20Sopenharmony_ci#define KERN_FEATURE_MIXED_MODE_STACK	0x00000001
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci#endif /* _UAPI_SPARC_UNISTD_H */
34