Subversion Repositories HelenOS-historic

Rev

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

Rev 657 Rev 666
Line 48... Line 48...
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_UP((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
    (c)->cleanwin = 0
54
   
55
   
55
 
56
 
56
/*
57
/*
57
 * Only save registers that must be preserved across
58
 * Only save registers that must be preserved across
58
 * function calls.
59
 * function calls.
Line 75... Line 76...
75
    __u64 l4;
76
    __u64 l4;
76
    __u64 l5;
77
    __u64 l5;
77
    __u64 l6;
78
    __u64 l6;
78
    __u64 l7;
79
    __u64 l7;
79
    ipl_t ipl;
80
    ipl_t ipl;
-
 
81
    __u64 cleanwin;
80
};
82
};
81
 
83
 
82
#endif
84
#endif