18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * OpenRISC Linux
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Linux architectural port borrowing liberally from similar works of
68c2ecf20Sopenharmony_ci * others.  All original copyrights apply as per the original source
78c2ecf20Sopenharmony_ci * declaration.
88c2ecf20Sopenharmony_ci *
98c2ecf20Sopenharmony_ci * OpenRISC implementation:
108c2ecf20Sopenharmony_ci * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com>
118c2ecf20Sopenharmony_ci * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
128c2ecf20Sopenharmony_ci * et al.
138c2ecf20Sopenharmony_ci *
148c2ecf20Sopenharmony_ci * This program is free software; you can redistribute it and/or modify
158c2ecf20Sopenharmony_ci * it under the terms of the GNU General Public License as published by
168c2ecf20Sopenharmony_ci * the Free Software Foundation; either version 2 of the License, or
178c2ecf20Sopenharmony_ci * (at your option) any later version.
188c2ecf20Sopenharmony_ci */
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci#ifndef __ASM_OPENRISC_SIGCONTEXT_H
218c2ecf20Sopenharmony_ci#define __ASM_OPENRISC_SIGCONTEXT_H
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci#include <asm/ptrace.h>
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci/* This struct is saved by setup_frame in signal.c, to keep the current
268c2ecf20Sopenharmony_ci   context while a signal handler is executed. It's restored by sys_sigreturn.
278c2ecf20Sopenharmony_ci*/
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_cistruct sigcontext {
308c2ecf20Sopenharmony_ci	struct user_regs_struct regs;  /* needs to be first */
318c2ecf20Sopenharmony_ci	unsigned long oldmask;
328c2ecf20Sopenharmony_ci};
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci#endif /* __ASM_OPENRISC_SIGCONTEXT_H */
35