Subversion Repositories HelenOS

Rev

Rev 2089 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2089 Rev 4635
Line 43... Line 43...
43
#define context_set(c, _pc, stack, size)    \
43
#define context_set(c, _pc, stack, size)    \
44
    (c)->pc = (uintptr_t) (_pc);        \
44
    (c)->pc = (uintptr_t) (_pc);        \
45
    (c)->sp = ((uintptr_t) (stack)) + (size) - SP_DELTA;
45
    (c)->sp = ((uintptr_t) (stack)) + (size) - SP_DELTA;
46
#endif /* context_set */
46
#endif /* context_set */
47
 
47
 
48
extern int context_save_arch(context_t *c);
48
extern int context_save_arch(context_t *c) __attribute__ ((returns_twice));
49
extern void context_restore_arch(context_t *c) __attribute__ ((noreturn));
49
extern void context_restore_arch(context_t *c) __attribute__ ((noreturn));
50
 
50
 
51
/** Save register context.
51
/** Save register context.
52
 *
52
 *
53
 * Save current register context (including stack pointers)
53
 * Save current register context (including stack pointers)