Rev 164 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 164 | Rev 197 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | */ |
27 | */ |
28 | 28 | ||
29 | #ifndef __amd64_CONTEXT_H__ |
29 | #ifndef __amd64_CONTEXT_H__ |
30 | #define __amd64_CONTEXT_H__ |
30 | #define __amd64_CONTEXT_H__ |
31 | 31 | ||
- | 32 | #ifndef __amd64_TYPES_H__ |
|
32 | #include <arch/types.h> |
33 | # include <arch/types.h> |
- | 34 | #endif |
|
33 | 35 | ||
34 | #define SP_DELTA 0 |
36 | #define SP_DELTA 8 |
35 | 37 | ||
36 | struct context { |
38 | struct context { |
37 | __u64 sp; |
39 | __u64 sp; |
38 | __u64 pc; |
40 | __u64 pc; |
39 | 41 | ||
- | 42 | __u64 rbx; |
|
- | 43 | __u64 rbp; |
|
- | 44 | ||
- | 45 | __u64 r12; |
|
- | 46 | __u64 r13; |
|
- | 47 | __u64 r14; |
|
- | 48 | __u64 r15; |
|
- | 49 | ||
40 | pri_t pri; |
50 | pri_t pri; |
41 | } __attribute__ ((packed)); |
51 | } __attribute__ ((packed)); |
42 | 52 | ||
43 | #endif |
53 | #endif |