ptrace.h (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) ptrace.h (63d7f9f11e5e81de2ce8f1c7a8aaed5b0288eddf)
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * OpenRISC Linux
4 *
5 * Linux architectural port borrowing liberally from similar works of
6 * others. All original copyrights apply as per the original source
7 * declaration.
8 *

--- 45 unchanged lines hidden (view full) ---

54 };
55 };
56 long pc;
57 /* For restarting system calls:
58 * Set to syscall number for syscall exceptions,
59 * -1 for all other exceptions.
60 */
61 long orig_gpr11; /* For restarting system calls */
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * OpenRISC Linux
4 *
5 * Linux architectural port borrowing liberally from similar works of
6 * others. All original copyrights apply as per the original source
7 * declaration.
8 *

--- 45 unchanged lines hidden (view full) ---

54 };
55 };
56 long pc;
57 /* For restarting system calls:
58 * Set to syscall number for syscall exceptions,
59 * -1 for all other exceptions.
60 */
61 long orig_gpr11; /* For restarting system calls */
62 long dummy; /* Cheap alignment fix */
62 long fpcsr; /* Floating point control status register. */
63 long dummy2; /* Cheap alignment fix */
64};
65
66/* TODO: Rename this to REDZONE because that's what it is */
67#define STACK_FRAME_OVERHEAD 128 /* size of minimum stack frame */
68
69#define instruction_pointer(regs) ((regs)->pc)
70#define user_mode(regs) (((regs)->sr & SPR_SR_SM) == 0)

--- 39 unchanged lines hidden (view full) ---

110#define PT_GPR26 104
111#define PT_GPR27 108
112#define PT_GPR28 112
113#define PT_GPR29 116
114#define PT_GPR30 120
115#define PT_GPR31 124
116#define PT_PC 128
117#define PT_ORIG_GPR11 132
63 long dummy2; /* Cheap alignment fix */
64};
65
66/* TODO: Rename this to REDZONE because that's what it is */
67#define STACK_FRAME_OVERHEAD 128 /* size of minimum stack frame */
68
69#define instruction_pointer(regs) ((regs)->pc)
70#define user_mode(regs) (((regs)->sr & SPR_SR_SM) == 0)

--- 39 unchanged lines hidden (view full) ---

110#define PT_GPR26 104
111#define PT_GPR27 108
112#define PT_GPR28 112
113#define PT_GPR29 116
114#define PT_GPR30 120
115#define PT_GPR31 124
116#define PT_PC 128
117#define PT_ORIG_GPR11 132
118#define PT_SYSCALLNO 136
118#define PT_FPCSR 136
119
120#endif /* __ASM_OPENRISC_PTRACE_H */
119
120#endif /* __ASM_OPENRISC_PTRACE_H */