Changeset 55f068c in mainline for uspace/lib/c/arch/amd64/src/fibril.S


Ignore:
Timestamp:
2018-03-11T17:15:15Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
12ae6d8
Parents:
615e83d
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-11 17:07:39)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-11 17:15:15)
Message:

Rename setjmp function to setjmp, use _Noreturn instead of attribute((noreturn)), minor comment changes.

Renaming for consistency with longjmp, and to better express that the implementation
of
setjmp has additional properties not defined by the C standard.

File:
1 edited

Legend:

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

    r615e83d r55f068c  
    3535#
    3636# Save CPU context to context_t variable
    37 # pointed by the 1st argument. Returns 0 in EAX.
     37# pointed by the 1st argument. Returns 0 in RAX.
    3838#
    39 FUNCTION_BEGIN(setjmp)
     39FUNCTION_BEGIN(__setjmp)
    4040        movq (%rsp), %rdx     # the caller's return %eip
    4141
     
    5454        movq %rax, CONTEXT_OFFSET_TLS(%rdi)
    5555
    56         xorq %rax, %rax                      # setjmp returns 0
     56        xorq %rax, %rax                      # __setjmp returns 0
    5757        ret
    58 FUNCTION_END(setjmp)
     58FUNCTION_END(__setjmp)
    5959
    6060## Restore current CPU context
    6161#
    6262# Restore CPU context from context_t variable
    63 # pointed by the 1st argument. Returns RSI in EAX.
     63# pointed by the 1st argument. Returns second argument in RAX.
    6464#
    6565FUNCTION_BEGIN(__longjmp)
Note: See TracChangeset for help on using the changeset viewer.