Rev 1054 | Rev 1702 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1054 | Rev 1055 | ||
---|---|---|---|
Line 27... | Line 27... | ||
27 | */ |
27 | */ |
28 | 28 | ||
29 | #ifndef __mips32_CONTEXT_H__ |
29 | #ifndef __mips32_CONTEXT_H__ |
30 | #define __mips32_CONTEXT_H__ |
30 | #define __mips32_CONTEXT_H__ |
31 | 31 | ||
- | 32 | #include <align.h> |
|
32 | #define STACK_ITEM_SIZE 4 |
33 | #include <arch/stack.h> |
33 | 34 | ||
34 | /* |
35 | /* |
35 | * Put one item onto the stack to support get_stack_base() and align it up to 8 bytes boundary. |
36 | * Put one item onto the stack to support get_stack_base() and align it up. |
36 | */ |
37 | */ |
37 | #define SP_DELTA ((0 + STACK_ITEM_SIZE + 7) & (~7)) |
38 | #define SP_DELTA (0 + ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT)) |
38 | 39 | ||
39 | 40 | ||
40 | #ifndef __ASM__ |
41 | #ifndef __ASM__ |
41 | 42 | ||
42 | #ifndef __mips32_TYPES_H__ |
43 | #ifndef __mips32_TYPES_H__ |