Rev 81 | Rev 83 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 81 | Rev 82 | ||
---|---|---|---|
Line 29... | Line 29... | ||
29 | #ifndef __ia64_CONTEXT_H__ |
29 | #ifndef __ia64_CONTEXT_H__ |
30 | #define __ia64_CONTEXT_H__ |
30 | #define __ia64_CONTEXT_H__ |
31 | 31 | ||
32 | #include <arch/types.h> |
32 | #include <arch/types.h> |
33 | 33 | ||
- | 34 | /* |
|
- | 35 | * context_save() and context_restore() are both leaf procedures. |
|
- | 36 | * No need to allocate scratch area. |
|
- | 37 | */ |
|
34 | #define SP_DELTA 16 |
38 | #define SP_DELTA 0 |
35 | 39 | ||
36 | struct context { |
40 | struct context { |
- | 41 | /* |
|
- | 42 | * General registers |
|
- | 43 | */ |
|
37 | __u64 r1; |
44 | __u64 r1; |
38 | __u64 r2; |
45 | __u64 r2; |
39 | __u64 r3; |
46 | __u64 r3; |
40 | __u64 r4; |
47 | __u64 r4; |
41 | __u64 r5; |
48 | __u64 r5; |
Line 63... | Line 70... | ||
63 | __u64 r27; |
70 | __u64 r27; |
64 | __u64 r28; |
71 | __u64 r28; |
65 | __u64 r29; |
72 | __u64 r29; |
66 | __u64 r30; |
73 | __u64 r30; |
67 | __u64 r31; |
74 | __u64 r31; |
- | 75 | ||
- | 76 | /* |
|
- | 77 | * Branch registers |
|
- | 78 | */ |
|
68 | __u64 pc; /* b0 */ |
79 | __u64 pc; /* b0 */ |
- | 80 | __u64 b1; |
|
- | 81 | __u64 b2; |
|
- | 82 | __u64 b3; |
|
- | 83 | __u64 b4; |
|
- | 84 | __u64 b5; |
|
- | 85 | __u64 b6; |
|
- | 86 | __u64 b7; |
|
- | 87 | ||
- | 88 | /* |
|
- | 89 | * Predicate registers |
|
- | 90 | */ |
|
- | 91 | __u64 pr; |
|
- | 92 | ||
69 | pri_t pri; |
93 | pri_t pri; |
70 | } __attribute__ ((packed)); |
94 | } __attribute__ ((packed)); |
71 | 95 | ||
72 | #endif |
96 | #endif |