162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 262306a36Sopenharmony_ci 362306a36Sopenharmony_ci#ifndef _CSKY_PTRACE_H 462306a36Sopenharmony_ci#define _CSKY_PTRACE_H 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef __ASSEMBLY__ 762306a36Sopenharmony_ci 862306a36Sopenharmony_cistruct pt_regs { 962306a36Sopenharmony_ci unsigned long tls; 1062306a36Sopenharmony_ci unsigned long lr; 1162306a36Sopenharmony_ci unsigned long pc; 1262306a36Sopenharmony_ci unsigned long sr; 1362306a36Sopenharmony_ci unsigned long usp; 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci /* 1662306a36Sopenharmony_ci * a0, a1, a2, a3: 1762306a36Sopenharmony_ci * abiv1: r2, r3, r4, r5 1862306a36Sopenharmony_ci * abiv2: r0, r1, r2, r3 1962306a36Sopenharmony_ci */ 2062306a36Sopenharmony_ci unsigned long orig_a0; 2162306a36Sopenharmony_ci unsigned long a0; 2262306a36Sopenharmony_ci unsigned long a1; 2362306a36Sopenharmony_ci unsigned long a2; 2462306a36Sopenharmony_ci unsigned long a3; 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ci /* 2762306a36Sopenharmony_ci * ABIV2: r4 ~ r13 2862306a36Sopenharmony_ci * ABIV1: r6 ~ r14, r1 2962306a36Sopenharmony_ci */ 3062306a36Sopenharmony_ci unsigned long regs[10]; 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci#if defined(__CSKYABIV2__) 3362306a36Sopenharmony_ci /* r16 ~ r30 */ 3462306a36Sopenharmony_ci unsigned long exregs[15]; 3562306a36Sopenharmony_ci 3662306a36Sopenharmony_ci unsigned long rhi; 3762306a36Sopenharmony_ci unsigned long rlo; 3862306a36Sopenharmony_ci unsigned long dcsr; 3962306a36Sopenharmony_ci#endif 4062306a36Sopenharmony_ci}; 4162306a36Sopenharmony_ci 4262306a36Sopenharmony_cistruct user_fp { 4362306a36Sopenharmony_ci unsigned long vr[96]; 4462306a36Sopenharmony_ci unsigned long fcr; 4562306a36Sopenharmony_ci unsigned long fesr; 4662306a36Sopenharmony_ci unsigned long fid; 4762306a36Sopenharmony_ci unsigned long reserved; 4862306a36Sopenharmony_ci}; 4962306a36Sopenharmony_ci 5062306a36Sopenharmony_ci#endif /* __ASSEMBLY__ */ 5162306a36Sopenharmony_ci#endif /* _CSKY_PTRACE_H */ 52