blob: 3f2da6d2d9541e00df07e5a162bd8f25fe85df43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#ifndef __ASM_SH_PTRACE_H
#define __ASM_SH_PTRACE_H
/*
* Copyright (C) 1999 Niibe Yutaka
*
*/
/*
* This struct defines the way the registers are stored on the
* kernel stack during a system call or other kernel entry.
*/
struct pt_regs {
long syscall_nr;
unsigned long u_regs[16];
unsigned long gbr;
unsigned long mach;
unsigned long macl;
unsigned long pr;
unsigned long sr;
unsigned long pc;
};
#ifdef __KERNEL__
#define user_mode(regs) (((regs)->sr & 0x40000000)==0)
#define instruction_pointer(regs) ((regs)->pc)
extern void show_regs(struct pt_regs *);
#endif
#define UREG_SP 15
#endif /* __ASM_SH_PTRACE_H */
|