--- zzzz-none-000/linux-3.10.107/arch/h8300/include/uapi/asm/ptrace.h 2017-06-27 09:49:32.000000000 +0000 +++ scorpion-7490-727/linux-3.10.107/arch/h8300/include/uapi/asm/ptrace.h 2021-02-04 17:41:59.000000000 +0000 @@ -10,11 +10,11 @@ #define PT_ER5 4 #define PT_ER6 5 #define PT_ER0 6 -#define PT_ORIG_ER0 7 -#define PT_CCR 8 -#define PT_PC 9 -#define PT_USP 10 -#define PT_EXR 12 +#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. */ @@ -28,17 +28,15 @@ long er2; long er1; long orig_er0; - unsigned short ccr; + long sp; + unsigned short ccr; long er0; long vector; -#if defined(CONFIG_CPU_H8S) - unsigned short exr; +#if defined(__H8300S__) + unsigned short exr; #endif unsigned long pc; -} __attribute__((aligned(2),packed)); - -#define PTRACE_GETREGS 12 -#define PTRACE_SETREGS 13 +} __attribute__((aligned(2), packed)); #endif /* __ASSEMBLY__ */ #endif /* _UAPI_H8300_PTRACE_H */