Rev 2071 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2071 | Rev 2083 | ||
|---|---|---|---|
| Line 44... | Line 44... | ||
| 44 | #define SP_DELTA 16 |
44 | #define SP_DELTA 16 |
| 45 | 45 | ||
| 46 | /* We include only registers that must be preserved |
46 | /* We include only registers that must be preserved |
| 47 | * during function call |
47 | * during function call |
| 48 | */ |
48 | */ |
| 49 | struct context { |
49 | typedef struct { |
| 50 | uintptr_t sp; |
50 | uintptr_t sp; |
| 51 | uintptr_t pc; |
51 | uintptr_t pc; |
| 52 | 52 | ||
| 53 | uint64_t rbx; |
53 | uint64_t rbx; |
| 54 | uint64_t rbp; |
54 | uint64_t rbp; |
| Line 57... | Line 57... | ||
| 57 | uint64_t r13; |
57 | uint64_t r13; |
| 58 | uint64_t r14; |
58 | uint64_t r14; |
| 59 | uint64_t r15; |
59 | uint64_t r15; |
| 60 | 60 | ||
| 61 | ipl_t ipl; |
61 | ipl_t ipl; |
| 62 | } __attribute__ ((packed)); |
62 | } __attribute__ ((packed)) context_t; |
| 63 | 63 | ||
| 64 | #endif |
64 | #endif |
| 65 | 65 | ||
| 66 | /** @} |
66 | /** @} |
| 67 | */ |
67 | */ |