Changeset b4f1171 in mainline for uspace/lib/c/arch/ppc32/src/fibril.S


Ignore:
Timestamp:
2019-02-03T14:56:13Z (6 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8f99dbf
Parents:
a5c78a18
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-03 14:49:38)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-03 14:56:13)
Message:

Rename setjmp/longjmp to context_save/context_restore

Once upon a time, I renamed context_save/context_restore to
setjmp/longjmp with the reasoning that they are almost
the same as setjmp/longjmp. I never got rid of the "almost",
so it ended up being somewhat confusing.
This is just a late correction of the old change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/arch/ppc32/src/fibril.S

    ra5c78a18 rb4f1171  
    3333#include <libarch/fibril_context.h>
    3434
    35 FUNCTION_BEGIN(__setjmp)
     35FUNCTION_BEGIN(__context_save)
    3636        stw sp, __CONTEXT_OFFSET_SP(r3)
    3737        stw r2, __CONTEXT_OFFSET_TLS(r3)
     
    6262        stw r4, __CONTEXT_OFFSET_CR(r3)
    6363
    64         # __setjmp returns 0
     64        # __context_save returns 0
    6565        li r3, 0
    6666        blr
    67 FUNCTION_END(__setjmp)
     67FUNCTION_END(__context_save)
    6868
    69 FUNCTION_BEGIN(__longjmp)
     69FUNCTION_BEGIN(__context_restore)
    7070        lwz sp, __CONTEXT_OFFSET_SP(r3)
    7171        lwz r2, __CONTEXT_OFFSET_TLS(r3)
     
    9696        mtlr r5
    9797
    98         # __longjmp returns second argument
     98        # __context_restore returns second argument
    9999        mr r3, r4
    100100        blr
    101 FUNCTION_END(__longjmp)
     101FUNCTION_END(__context_restore)
Note: See TracChangeset for help on using the changeset viewer.