]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/score/include/asm/ptrace.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / arch / score / include / asm / ptrace.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
6bc9a396
CL
2#ifndef _ASM_SCORE_PTRACE_H
3#define _ASM_SCORE_PTRACE_H
4
d66d8c71 5#include <uapi/asm/ptrace.h>
0402c91a 6
6bc9a396 7
ffa818b4
CL
8struct task_struct;
9
6bc9a396
CL
10/*
11 * Does the process account for user or for system time?
12 */
13#define user_mode(regs) ((regs->cp0_psr & 8) == 8)
14
0402c91a
CL
15#define instruction_pointer(regs) ((unsigned long)(regs)->cp0_epc)
16#define profile_pc(regs) instruction_pointer(regs)
5208ba24 17#define user_stack_pointer(r) ((unsigned long)(r)->regs[0])
6bc9a396 18
0402c91a 19extern void do_syscall_trace(struct pt_regs *regs, int entryexit);
6bc9a396 20extern int read_tsk_long(struct task_struct *, unsigned long, unsigned long *);
0402c91a
CL
21extern int read_tsk_short(struct task_struct *, unsigned long,
22 unsigned short *);
23
24#define arch_has_single_step() (1)
dacbe41f 25
6bc9a396 26#endif /* _ASM_SCORE_PTRACE_H */