Subversion Repositories HelenOS

Rev

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

Rev 1851 Rev 1856
Line 52... Line 52...
52
#ifdef context_set
52
#ifdef context_set
53
#undef context_set
53
#undef context_set
54
#endif
54
#endif
55
 
55
 
56
#define context_set(c, _pc, stack, size)                                \
56
#define context_set(c, _pc, stack, size)                                \
57
        (c)->pc = ((uintptr_t) _pc) - 8;                                \
57
    (c)->pc = ((uintptr_t) _pc) - 8;                                \
58
        (c)->sp = ((uintptr_t) stack) + ALIGN_UP((size), STACK_ALIGNMENT) - (STACK_BIAS + SP_DELTA);    \
58
    (c)->sp = ((uintptr_t) stack) + ALIGN_UP((size), STACK_ALIGNMENT) - (STACK_BIAS + SP_DELTA);    \
59
    (c)->fp = -STACK_BIAS;                                      \
59
    (c)->fp = -STACK_BIAS;                                      \
60
    (c)->cleanwin = 0
60
    (c)->cleanwin = 0
61
   
61
   
62
 
62
 
63
/*
63
/*