18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2012 ARM Ltd.
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or modify
68c2ecf20Sopenharmony_ci * it under the terms of the GNU General Public License version 2 as
78c2ecf20Sopenharmony_ci * published by the Free Software Foundation.
88c2ecf20Sopenharmony_ci *
98c2ecf20Sopenharmony_ci * This program is distributed in the hope that it will be useful,
108c2ecf20Sopenharmony_ci * but WITHOUT ANY WARRANTY; without even the implied warranty of
118c2ecf20Sopenharmony_ci * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
128c2ecf20Sopenharmony_ci * GNU General Public License for more details.
138c2ecf20Sopenharmony_ci *
148c2ecf20Sopenharmony_ci * You should have received a copy of the GNU General Public License
158c2ecf20Sopenharmony_ci * along with this program.  If not, see <http://www.gnu.org/licenses/>.
168c2ecf20Sopenharmony_ci */
178c2ecf20Sopenharmony_ci#ifndef _UAPI__ASM_UCONTEXT_H
188c2ecf20Sopenharmony_ci#define _UAPI__ASM_UCONTEXT_H
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#include <linux/types.h>
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_cistruct ucontext {
238c2ecf20Sopenharmony_ci	unsigned long	  uc_flags;
248c2ecf20Sopenharmony_ci	struct ucontext	 *uc_link;
258c2ecf20Sopenharmony_ci	stack_t		  uc_stack;
268c2ecf20Sopenharmony_ci	sigset_t	  uc_sigmask;
278c2ecf20Sopenharmony_ci	/* glibc uses a 1024-bit sigset_t */
288c2ecf20Sopenharmony_ci	__u8		  __unused[1024 / 8 - sizeof(sigset_t)];
298c2ecf20Sopenharmony_ci	/* last for future expansion */
308c2ecf20Sopenharmony_ci	struct sigcontext uc_mcontext;
318c2ecf20Sopenharmony_ci};
328c2ecf20Sopenharmony_ci
338c2ecf20Sopenharmony_ci#endif /* _UAPI__ASM_UCONTEXT_H */
34