Files
Linux_Drivers/linux_5.10/arch/h8300/include/uapi/asm/ptrace.h
sam.xiang 5c7dd7acc3 [linux] create linux_5.10.4 from T-head official:
repo: https://github.com/T-head-Semi/linux
	commit: b1313fe517ca3703119dcc99ef3bbf75ab42bcfb

Change-Id: I6cbb35294024ea3a66140e311f4bb705fd7fd626
2023-03-10 20:32:41 +08:00

44 lines
873 B
C

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
#ifndef _UAPI_H8300_PTRACE_H
#define _UAPI_H8300_PTRACE_H
#ifndef __ASSEMBLY__
#define PT_ER1 0
#define PT_ER2 1
#define PT_ER3 2
#define PT_ER4 3
#define PT_ER5 4
#define PT_ER6 5
#define PT_ER0 6
#define PT_USP 7
#define PT_ORIG_ER0 8
#define PT_CCR 9
#define PT_PC 10
#define PT_EXR 11
/* this struct defines the way the registers are stored on the
stack during a system call. */
struct pt_regs {
long retpc;
long er4;
long er5;
long er6;
long er3;
long er2;
long er1;
long orig_er0;
long sp;
unsigned short ccr;
long er0;
long vector;
#if defined(__H8300S__)
unsigned short exr;
#endif
unsigned long pc;
} __attribute__((aligned(2), packed));
#endif /* __ASSEMBLY__ */
#endif /* _UAPI_H8300_PTRACE_H */