18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
28c2ecf20Sopenharmony_ci#ifndef _ASMARM_SIGCONTEXT_H
38c2ecf20Sopenharmony_ci#define _ASMARM_SIGCONTEXT_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci/*
68c2ecf20Sopenharmony_ci * Signal context structure - contains all info to do with the state
78c2ecf20Sopenharmony_ci * before the signal handler was invoked.  Note: only add new entries
88c2ecf20Sopenharmony_ci * to the end of the structure.
98c2ecf20Sopenharmony_ci */
108c2ecf20Sopenharmony_cistruct sigcontext {
118c2ecf20Sopenharmony_ci	unsigned long trap_no;
128c2ecf20Sopenharmony_ci	unsigned long error_code;
138c2ecf20Sopenharmony_ci	unsigned long oldmask;
148c2ecf20Sopenharmony_ci	unsigned long arm_r0;
158c2ecf20Sopenharmony_ci	unsigned long arm_r1;
168c2ecf20Sopenharmony_ci	unsigned long arm_r2;
178c2ecf20Sopenharmony_ci	unsigned long arm_r3;
188c2ecf20Sopenharmony_ci	unsigned long arm_r4;
198c2ecf20Sopenharmony_ci	unsigned long arm_r5;
208c2ecf20Sopenharmony_ci	unsigned long arm_r6;
218c2ecf20Sopenharmony_ci	unsigned long arm_r7;
228c2ecf20Sopenharmony_ci	unsigned long arm_r8;
238c2ecf20Sopenharmony_ci	unsigned long arm_r9;
248c2ecf20Sopenharmony_ci	unsigned long arm_r10;
258c2ecf20Sopenharmony_ci	unsigned long arm_fp;
268c2ecf20Sopenharmony_ci	unsigned long arm_ip;
278c2ecf20Sopenharmony_ci	unsigned long arm_sp;
288c2ecf20Sopenharmony_ci	unsigned long arm_lr;
298c2ecf20Sopenharmony_ci	unsigned long arm_pc;
308c2ecf20Sopenharmony_ci	unsigned long arm_cpsr;
318c2ecf20Sopenharmony_ci	unsigned long fault_address;
328c2ecf20Sopenharmony_ci};
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci
358c2ecf20Sopenharmony_ci#endif
36