1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
2 /* MN10300 Exception frame layout and ptrace constants
4 * Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
5 * Written by David Howells (dhowells@redhat.com)
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public Licence
9 * as published by the Free Software Foundation; either version
10 * 2 of the Licence, or (at your option) any later version.
12 #ifndef _UAPI_ASM_PTRACE_H
13 #define _UAPI_ASM_PTRACE_H
45 * This defines the way registers are stored in the event of an exception
46 * - the strange order is due to the MOVM instruction
49 unsigned long a3; /* syscall arg 3 */
50 unsigned long a2; /* syscall arg 4 */
51 unsigned long d3; /* syscall arg 5 */
52 unsigned long d2; /* syscall arg 6 */
70 unsigned long a0; /* syscall arg 1 */
71 unsigned long d1; /* syscall arg 2 */
72 unsigned long d0; /* syscall ret */
73 struct pt_regs *next; /* next frame pointer */
74 unsigned long orig_d0; /* syscall number */
79 /* Arbitrarily choose the same ptrace numbers as used by the Sparc code. */
80 #define PTRACE_GETREGS 12
81 #define PTRACE_SETREGS 13
82 #define PTRACE_GETFPREGS 14
83 #define PTRACE_SETFPREGS 15
85 #endif /* _UAPI_ASM_PTRACE_H */