Changeset 55f068c in mainline for uspace/lib/c/arch/ia32/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/ia32/src/fibril.S

    r615e83d r55f068c  
    3737# pointed by the 1st argument. Returns 0 in EAX.
    3838#
    39 FUNCTION_BEGIN(setjmp)
     39FUNCTION_BEGIN(__setjmp)
    4040        movl 0(%esp), %eax  # the caller's return %eip
    4141        movl 4(%esp), %edx  # address of the context variable to save context to
     
    5353        movl %eax, CONTEXT_OFFSET_TLS(%edx)     # tls -> ctx->tls
    5454
    55         xorl %eax, %eax         # setjmp returns 0
     55        xorl %eax, %eax         # __setjmp returns 0
    5656        ret
    57 FUNCTION_END(setjmp)
     57FUNCTION_END(__setjmp)
    5858
    5959## Restore saved CPU context
Note: See TracChangeset for help on using the changeset viewer.