Rev 199 | Rev 210 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 199 | Rev 207 | ||
---|---|---|---|
Line 28... | Line 28... | ||
28 | 28 | ||
29 | #ifndef __ppc_CONTEXT_H__ |
29 | #ifndef __ppc_CONTEXT_H__ |
30 | #define __ppc_CONTEXT_H__ |
30 | #define __ppc_CONTEXT_H__ |
31 | 31 | ||
32 | #include <arch/types.h> |
32 | #include <arch/types.h> |
- | 33 | #include <arch/drivers/ofw.h> |
|
33 | 34 | ||
34 | #define SP_DELTA 4 |
35 | #define SP_DELTA 8 |
- | 36 | ||
- | 37 | #ifdef context_map_stack |
|
- | 38 | #undef context_map_stack |
|
- | 39 | #endif |
|
- | 40 | ||
- | 41 | #define context_map_stack(stack, size) \ |
|
- | 42 | ofw_claim((void *) stack, size, 0); |
|
35 | 43 | ||
36 | struct context { |
44 | struct context { |
37 | __u32 r0; |
45 | __u32 r0; |
38 | __u32 sp; |
46 | __u32 sp; |
39 | __u32 r2; |
47 | __u32 r2; |