Ignore:
Timestamp:
2018-03-08T18:25:31Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
55f068c
Parents:
e0a4686
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-08 17:43:06)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-08 18:25:31)
Message:

Turn context_save/context_restore into standard setjmp/longjmp.

File:
1 edited

Legend:

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

    re0a4686 r615e83d  
    3232.text
    3333
    34 FUNCTION_BEGIN(context_save)
     34FUNCTION_BEGIN(setjmp)
    3535        #
    3636        # We rely on the kernel to flush our active register windows to memory
     
    5757        stx %g7, [%o0 + CONTEXT_OFFSET_TP]
    5858        retl
    59         mov 1, %o0              ! context_save_arch returns 1
    60 FUNCTION_END(context_save)
     59        mov 0, %o0              ! setjmp returns 0
     60FUNCTION_END(setjmp)
    6161
    62 FUNCTION_BEGIN(context_restore)
     62FUNCTION_BEGIN(__longjmp)
    6363        #
    6464        # Flush all active windows.
     
    8989        ldx [%o0 + CONTEXT_OFFSET_TP], %g7
    9090        retl
    91         xor %o0, %o0, %o0       ! context_restore_arch returns 0
    92 FUNCTION_END(context_restore)
     91        mov %o1, %o0    ! __longjmp returns second argument
     92FUNCTION_END(__longjmp)
Note: See TracChangeset for help on using the changeset viewer.