OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [include/] [asm-m68knommu/] [ptrace.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1633 jcastillo
#ifndef _M68K_PTRACE_H
2
#define _M68K_PTRACE_H
3
 
4
#include <linux/config.h> /* get configuration macros */
5
 
6
#define PT_D1      0
7
#define PT_D2      1
8
#define PT_D3      2
9
#define PT_D4      3
10
#define PT_D5      4
11
#define PT_D6      5
12
#define PT_D7      6
13
#define PT_A0      7
14
#define PT_A1      8
15
#define PT_A2      9
16
#define PT_A3      10
17
#define PT_A4      11
18
#define PT_A5      12
19
#define PT_A6      13
20
#define PT_D0      14
21
#define PT_USP     15
22
#define PT_ORIG_D0 16
23
#define PT_SR      17
24
#define PT_PC      18
25
 
26
#ifndef __ASSEMBLY__
27
 
28
/* this struct defines the way the registers are stored on the
29
   stack during a system call. */
30
 
31
struct pt_regs {
32
  long     d1;
33
  long     d2;
34
  long     d3;
35
  long     d4;
36
  long     d5;
37
  long     a0;
38
  long     a1;
39
  long     d0;
40
  long     orig_d0;
41
  long     stkadj;
42
#ifdef CONFIG_COLDFIRE
43
  unsigned format :  4; /* frame format specifier */
44
  unsigned vector : 12; /* vector offset */
45
  unsigned short sr;
46
  unsigned long  pc;
47
#else
48
  unsigned short sr;
49
  unsigned long  pc;
50
#ifndef NO_FORMAT_VEC
51
  unsigned format :  4; /* frame format specifier */
52
  unsigned vector : 12; /* vector offset */
53
#endif
54
#endif
55
};
56
 
57
/*
58
 * This is the extended stack used by signal handlers and the context
59
 * switcher: it's pushed after the normal "struct pt_regs".
60
 */
61
struct switch_stack {
62
        unsigned long  d6;
63
        unsigned long  d7;
64
        unsigned long  a2;
65
        unsigned long  a3;
66
        unsigned long  a4;
67
        unsigned long  a5;
68
        unsigned long  a6;
69
        unsigned long  retpc;
70
};
71
 
72
#ifdef __KERNEL__
73
 
74
#ifndef PS_S
75
#define PS_S  (0x2000)
76
#define PS_M  (0x1000)
77
#endif
78
 
79
#define user_mode(regs) (!((regs)->sr & PS_S))
80
#define instruction_pointer(regs) ((regs)->pc)
81
extern void show_regs(struct pt_regs *);
82
#endif /* __KERNEL__ */
83
#endif /* __ASSEMBLY__ */
84
#endif /* _M68K_PTRACE_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.