1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 2*4882a593Smuzhiyun /* 3*4882a593Smuzhiyun * OpenRISC Linux 4*4882a593Smuzhiyun * 5*4882a593Smuzhiyun * Linux architectural port borrowing liberally from similar works of 6*4882a593Smuzhiyun * others. All original copyrights apply as per the original source 7*4882a593Smuzhiyun * declaration. 8*4882a593Smuzhiyun * 9*4882a593Smuzhiyun * OpenRISC implementation: 10*4882a593Smuzhiyun * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com> 11*4882a593Smuzhiyun * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se> 12*4882a593Smuzhiyun * et al. 13*4882a593Smuzhiyun * 14*4882a593Smuzhiyun * This program is free software; you can redistribute it and/or modify 15*4882a593Smuzhiyun * it under the terms of the GNU General Public License as published by 16*4882a593Smuzhiyun * the Free Software Foundation; either version 2 of the License, or 17*4882a593Smuzhiyun * (at your option) any later version. 18*4882a593Smuzhiyun */ 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun #ifndef __ASM_OPENRISC_SIGCONTEXT_H 21*4882a593Smuzhiyun #define __ASM_OPENRISC_SIGCONTEXT_H 22*4882a593Smuzhiyun 23*4882a593Smuzhiyun #include <asm/ptrace.h> 24*4882a593Smuzhiyun 25*4882a593Smuzhiyun /* This struct is saved by setup_frame in signal.c, to keep the current 26*4882a593Smuzhiyun context while a signal handler is executed. It's restored by sys_sigreturn. 27*4882a593Smuzhiyun */ 28*4882a593Smuzhiyun 29*4882a593Smuzhiyun struct sigcontext { 30*4882a593Smuzhiyun struct user_regs_struct regs; /* needs to be first */ 31*4882a593Smuzhiyun unsigned long oldmask; 32*4882a593Smuzhiyun }; 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun #endif /* __ASM_OPENRISC_SIGCONTEXT_H */ 35