2 * Copyright (C) 2006 Atmark Techno, Inc.
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
9 #ifndef _ASM_MICROBLAZE_PTRACE_H
10 #define _ASM_MICROBLAZE_PTRACE_H
14 typedef unsigned long microblaze_reg_t;
57 #define kernel_mode(regs) ((regs)->pt_mode)
58 #define user_mode(regs) (!kernel_mode(regs))
60 #define instruction_pointer(regs) ((regs)->pc)
61 #define profile_pc(regs) instruction_pointer(regs)
63 void show_regs(struct pt_regs *);
65 #endif /* __ASSEMBLY__ */
67 #endif /* _ASM_MICROBLAZE_PTRACE_H */