blob: db655d533959fde621e3a7fc77c2a5e2f4dbdb1d (
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
/* $OpenBSD: frame.h,v 1.4 1998/12/29 21:52:37 mickey Exp $ */
#ifndef _MACHINE_FRAME_H_
#define _MACHINE_FRAME_H_
#define FRAME_PC (33*4)
/*
* Macros to decode processor status word.
*/
#define HPPA_PC_PRIV_MASK 3
#define HPPA_PC_PRIV_KERN 0
#define HPPA_PC_PRIV_USER 3
#define USERMODE(pc) (((pc) & HPPA_PC_PRIV_MASK) != HPPA_PC_PRIV_KERN)
#ifndef _LOCORE
struct trapframe {
u_int flags;
u_int r1;
u_int rp; /* r2 */
u_int r3; /* frame pointer when -g */
u_int r4;
u_int r5;
u_int r6;
u_int r7;
u_int r8;
u_int r9;
u_int r10;
u_int r11;
u_int r12;
u_int r13;
u_int r14;
u_int r15;
u_int r16;
u_int r17;
u_int r18;
u_int t4; /* r19 */
u_int t3; /* r20 */
u_int t2; /* r21 */
u_int t1; /* r22 */
u_int arg3; /* r23 */
u_int arg2; /* r24 */
u_int arg1; /* r25 */
u_int arg0; /* r26 */
u_int dp; /* r27 */
u_int ret0; /* r28 */
u_int ret1; /* r29 */
u_int sp; /* r30 */
u_int r31;
u_int sar; /* cr11 */
u_int iioq_head;
u_int iisq_head;
u_int iioq_tail;
u_int iisq_tail;
u_int eiem; /* cr15 */
u_int iir; /* cr19 */
u_int isr; /* cr20 */
u_int ior; /* cr21 */
u_int ipsw; /* cr22 */
u_int sr4;
u_int sr0;
u_int sr1;
u_int sr2;
u_int sr3;
u_int sr5;
u_int sr6;
u_int sr7;
u_int rctr; /* cr0 */
u_int pidr1; /* cr8 */
u_int pidr2; /* cr9 */
u_int ccr; /* cr10 */
u_int pidr3; /* cr12 */
u_int pidr4; /* cr13 */
u_int hptm; /* cr24 */
u_int vtop; /* cr25 */
u_int tr2; /* cr26 */
u_int fpu;
int tf_regs[10];
};
#endif /* !_LOCORE */
#endif /* !_MACHINE_FRAME_H_ */
|