xref: /openbmc/linux/arch/openrisc/include/uapi/asm/ptrace.h (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
1e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
2913c2302SDavid Howells /*
3913c2302SDavid Howells  * OpenRISC Linux
4913c2302SDavid Howells  *
5913c2302SDavid Howells  * Linux architectural port borrowing liberally from similar works of
6913c2302SDavid Howells  * others.  All original copyrights apply as per the original source
7913c2302SDavid Howells  * declaration.
8913c2302SDavid Howells  *
9913c2302SDavid Howells  * OpenRISC implementation:
10913c2302SDavid Howells  * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com>
11913c2302SDavid Howells  * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
12913c2302SDavid Howells  * et al.
13913c2302SDavid Howells  *
14913c2302SDavid Howells  * This program is free software; you can redistribute it and/or modify
15913c2302SDavid Howells  * it under the terms of the GNU General Public License as published by
16913c2302SDavid Howells  * the Free Software Foundation; either version 2 of the License, or
17913c2302SDavid Howells  * (at your option) any later version.
18913c2302SDavid Howells  */
19913c2302SDavid Howells 
20913c2302SDavid Howells #ifndef _UAPI__ASM_OPENRISC_PTRACE_H
21913c2302SDavid Howells #define _UAPI__ASM_OPENRISC_PTRACE_H
22913c2302SDavid Howells 
23913c2302SDavid Howells #ifndef __ASSEMBLY__
24913c2302SDavid Howells /*
25913c2302SDavid Howells  * This is the layout of the regset returned by the GETREGSET ptrace call
26913c2302SDavid Howells  */
27913c2302SDavid Howells struct user_regs_struct {
28913c2302SDavid Howells 	/* GPR R0-R31... */
29913c2302SDavid Howells 	unsigned long gpr[32];
30913c2302SDavid Howells 	unsigned long pc;
31913c2302SDavid Howells 	unsigned long sr;
32913c2302SDavid Howells };
33*27267655SStafford Horne 
34*27267655SStafford Horne struct __or1k_fpu_state {
35*27267655SStafford Horne 	unsigned long fpcsr;
36*27267655SStafford Horne };
37913c2302SDavid Howells #endif
38913c2302SDavid Howells 
39913c2302SDavid Howells 
40913c2302SDavid Howells #endif /* _UAPI__ASM_OPENRISC_PTRACE_H */
41