Subversion Repositories HelenOS-historic

Rev

Rev 534 | Rev 650 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 534 Rev 564
Line 47... Line 47...
47
#undef context_set
47
#undef context_set
48
#endif
48
#endif
49
 
49
 
50
#define context_set(c, _pc, stack, size)                                \
50
#define context_set(c, _pc, stack, size)                                \
51
        (c)->pc = ((__address) _pc) - 8;                                \
51
        (c)->pc = ((__address) _pc) - 8;                                \
52
        (c)->sp = ((__address) stack) + ALIGN((size), STACK_ALIGNMENT) - (STACK_BIAS + SP_DELTA);   \
52
        (c)->sp = ((__address) stack) + ALIGN_UP((size), STACK_ALIGNMENT) - (STACK_BIAS + SP_DELTA);    \
53
    (c)->fp = -STACK_BIAS
53
    (c)->fp = -STACK_BIAS
54
   
54
   
55
 
55
 
56
/*
56
/*
57
 * Only save registers that must be preserved across
57
 * Only save registers that must be preserved across