Subversion Repositories HelenOS

Rev

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

Rev 4528 Rev 4633
Line 163... Line 163...
163
   
163
   
164
    srcf = __tcb_get()->fibril_data;
164
    srcf = __tcb_get()->fibril_data;
165
    if (stype != FIBRIL_FROM_DEAD) {
165
    if (stype != FIBRIL_FROM_DEAD) {
166
        /* Save current state */
166
        /* Save current state */
167
        if (!context_save(&srcf->ctx)) {
167
        if (!context_save(&srcf->ctx)) {
-
 
168
            /*
-
 
169
             * Make sure to reload srcf with the current fibril
-
 
170
             * address. Its value may be invalid after
-
 
171
             * contex_restore() due to e.g. register recycling.
-
 
172
             */
-
 
173
            srcf = __tcb_get()->fibril_data;
168
            if (serialization_count)
174
            if (serialization_count)
169
                srcf->flags &= ~FIBRIL_SERIALIZED;
175
                srcf->flags &= ~FIBRIL_SERIALIZED;
170
            if (srcf->clean_after_me) {
176
            if (srcf->clean_after_me) {
171
                /*
177
                /*
172
                 * Cleanup after the dead fibril from which we
178
                 * Cleanup after the dead fibril from which we