Rev 1702 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1702 | Rev 1780 | ||
---|---|---|---|
Line 40... | Line 40... | ||
40 | #include <arch/context.h> |
40 | #include <arch/context.h> |
41 | 41 | ||
42 | 42 | ||
43 | #ifndef context_set |
43 | #ifndef context_set |
44 | #define context_set(c, _pc, stack, size) \ |
44 | #define context_set(c, _pc, stack, size) \ |
45 | (c)->pc = (__address) (_pc); \ |
45 | (c)->pc = (uintptr_t) (_pc); \ |
46 | (c)->sp = ((__address) (stack)) + (size) - SP_DELTA; |
46 | (c)->sp = ((uintptr_t) (stack)) + (size) - SP_DELTA; |
47 | #endif /* context_set */ |
47 | #endif /* context_set */ |
48 | 48 | ||
49 | extern int context_save_arch(context_t *c); |
49 | extern int context_save_arch(context_t *c); |
50 | extern void context_restore_arch(context_t *c) __attribute__ ((noreturn)); |
50 | extern void context_restore_arch(context_t *c) __attribute__ ((noreturn)); |
51 | 51 |