Rev 2083 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2083 | Rev 2089 | ||
|---|---|---|---|
| Line 35... | Line 35... | ||
| 35 | #ifndef KERN_ia64_CONTEXT_H_ |
35 | #ifndef KERN_ia64_CONTEXT_H_ |
| 36 | #define KERN_ia64_CONTEXT_H_ |
36 | #define KERN_ia64_CONTEXT_H_ |
| 37 | 37 | ||
| 38 | #include <arch/types.h> |
38 | #include <arch/types.h> |
| 39 | #include <arch/register.h> |
39 | #include <arch/register.h> |
| 40 | #include <typedefs.h> |
- | |
| 41 | #include <align.h> |
40 | #include <align.h> |
| 42 | #include <arch/stack.h> |
41 | #include <arch/stack.h> |
| 43 | 42 | ||
| 44 | /* |
43 | /* |
| 45 | * context_save_arch() and context_restore_arch() are both leaf procedures. |
44 | * context_save_arch() and context_restore_arch() are both leaf procedures. |
| 46 | * No need to allocate scratch area. |
45 | * No need to allocate scratch area. |
| 47 | * |
46 | * |
| 48 | * One item is put onto the stack to support get_stack_base(). |
47 | * One item is put onto the stack to support get_stack_base(). |
| 49 | */ |
48 | */ |
| 50 | #define SP_DELTA (0+ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT)) |
49 | #define SP_DELTA (0 + ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT)) |
| 51 | 50 | ||
| 52 | #ifdef context_set |
51 | #ifdef context_set |
| 53 | #undef context_set |
52 | #undef context_set |
| 54 | #endif |
53 | #endif |
| 55 | 54 | ||
| Line 103... | Line 102... | ||
| 103 | /* |
102 | /* |
| 104 | * Predicate registers |
103 | * Predicate registers |
| 105 | */ |
104 | */ |
| 106 | uint64_t pr; |
105 | uint64_t pr; |
| 107 | 106 | ||
| 108 | __r128 f2 __attribute__ ((aligned(16))); |
107 | uint128_t f2 __attribute__ ((aligned(16))); |
| 109 | __r128 f3; |
108 | uint128_t f3; |
| 110 | __r128 f4; |
109 | uint128_t f4; |
| 111 | __r128 f5; |
110 | uint128_t f5; |
| 112 | 111 | ||
| 113 | __r128 f16; |
112 | uint128_t f16; |
| 114 | __r128 f17; |
113 | uint128_t f17; |
| 115 | __r128 f18; |
114 | uint128_t f18; |
| 116 | __r128 f19; |
115 | uint128_t f19; |
| 117 | __r128 f20; |
116 | uint128_t f20; |
| 118 | __r128 f21; |
117 | uint128_t f21; |
| 119 | __r128 f22; |
118 | uint128_t f22; |
| 120 | __r128 f23; |
119 | uint128_t f23; |
| 121 | __r128 f24; |
120 | uint128_t f24; |
| 122 | __r128 f25; |
121 | uint128_t f25; |
| 123 | __r128 f26; |
122 | uint128_t f26; |
| 124 | __r128 f27; |
123 | uint128_t f27; |
| 125 | __r128 f28; |
124 | uint128_t f28; |
| 126 | __r128 f29; |
125 | uint128_t f29; |
| 127 | __r128 f30; |
126 | uint128_t f30; |
| 128 | __r128 f31; |
127 | uint128_t f31; |
| 129 | 128 | ||
| 130 | ipl_t ipl; |
129 | ipl_t ipl; |
| 131 | } context_t; |
130 | } context_t; |
| 132 | 131 | ||
| 133 | #endif |
132 | #endif |