162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * OpenRISC Linux
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Linux architectural port borrowing liberally from similar works of
662306a36Sopenharmony_ci * others.  All original copyrights apply as per the original source
762306a36Sopenharmony_ci * declaration.
862306a36Sopenharmony_ci *
962306a36Sopenharmony_ci * OpenRISC implementation:
1062306a36Sopenharmony_ci * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com>
1162306a36Sopenharmony_ci * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
1262306a36Sopenharmony_ci * et al.
1362306a36Sopenharmony_ci *
1462306a36Sopenharmony_ci * This program is free software; you can redistribute it and/or modify
1562306a36Sopenharmony_ci * it under the terms of the GNU General Public License as published by
1662306a36Sopenharmony_ci * the Free Software Foundation; either version 2 of the License, or
1762306a36Sopenharmony_ci * (at your option) any later version.
1862306a36Sopenharmony_ci */
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci#ifndef _UAPI__ASM_OPENRISC_PTRACE_H
2162306a36Sopenharmony_ci#define _UAPI__ASM_OPENRISC_PTRACE_H
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ci#ifndef __ASSEMBLY__
2462306a36Sopenharmony_ci/*
2562306a36Sopenharmony_ci * This is the layout of the regset returned by the GETREGSET ptrace call
2662306a36Sopenharmony_ci */
2762306a36Sopenharmony_cistruct user_regs_struct {
2862306a36Sopenharmony_ci	/* GPR R0-R31... */
2962306a36Sopenharmony_ci	unsigned long gpr[32];
3062306a36Sopenharmony_ci	unsigned long pc;
3162306a36Sopenharmony_ci	unsigned long sr;
3262306a36Sopenharmony_ci};
3362306a36Sopenharmony_ci
3462306a36Sopenharmony_cistruct __or1k_fpu_state {
3562306a36Sopenharmony_ci	unsigned long fpcsr;
3662306a36Sopenharmony_ci};
3762306a36Sopenharmony_ci#endif
3862306a36Sopenharmony_ci
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ci#endif /* _UAPI__ASM_OPENRISC_PTRACE_H */
41