Changeset e1888f9 in mainline


Ignore:
Timestamp:
2006-02-03T16:16:38Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c352c2e
Parents:
fb10289b
Message:

Fix context_save, so that it works even with inlines disabled (-O0).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/include/context.h

    rfb10289b re1888f9  
    5252 * address as the corresponding call to context_save().
    5353 *
     54 * This MUST be a macro, gcc -O0 does not inline functions even
     55 * if they are marked inline and context_save_arch must be called
     56 * from level <= that when context_restore is called.
     57 *
    5458 * @param c Context structure.
    5559 *
    5660 * @return context_save() returns 1, context_restore() returns 0.
    5761 */
    58 static inline int context_save(context_t *c)
    59 {
    60         return context_save_arch(c);
    61 }
     62#define context_save(c)   context_save_arch(c)
    6263
    6364/** Restore register context.
Note: See TracChangeset for help on using the changeset viewer.