Changeset ec8b0dac in mainline for uspace/lib/libc/generic/fibril.c


Ignore:
Timestamp:
2009-07-11T15:14:56Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4b2c458c
Parents:
4c467ee
Message:

Things are much easier when the compiler knows that context_save() returns twice.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/fibril.c

    r4c467ee rec8b0dac  
    166166                /* Save current state */
    167167                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;
    174168                        if (serialization_count)
    175169                                srcf->flags &= ~FIBRIL_SERIALIZED;
Note: See TracChangeset for help on using the changeset viewer.