WIP FPC-III support
[linux/fpc-iii.git] / arch / microblaze / include / asm / ptrace.h
blobbfcb89df5e26fc464f612deb62ea9825975eb6e4
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3 * Copyright (C) 2006 Atmark Techno, Inc.
4 */
5 #ifndef _ASM_MICROBLAZE_PTRACE_H
6 #define _ASM_MICROBLAZE_PTRACE_H
8 #include <uapi/asm/ptrace.h>
10 #ifndef __ASSEMBLY__
11 #define kernel_mode(regs) ((regs)->pt_mode)
12 #define user_mode(regs) (!kernel_mode(regs))
14 #define instruction_pointer(regs) ((regs)->pc)
15 #define profile_pc(regs) instruction_pointer(regs)
16 #define user_stack_pointer(regs) ((regs)->r1)
18 static inline long regs_return_value(struct pt_regs *regs)
20 return regs->r3;
23 #endif /* __ASSEMBLY__ */
24 #endif /* _ASM_MICROBLAZE_PTRACE_H */