Changeset ab936440 in mainline for uspace/lib/c/generic/setjmp.c
- Timestamp:
- 2019-02-12T20:42:42Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f31ca47
- Parents:
- 7f7817a9 (diff), 4805495 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - git-author:
- Matthieu Riolo <matthieu.riolo@…> (2019-02-12 20:26:18)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-02-12 20:42:42)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/setjmp.c
r7f7817a9 rab936440 38 38 void longjmp(jmp_buf env, int val) 39 39 { 40 /* __longjmp defined in assembly doesn't "correct" the value. */ 41 __longjmp(env, val == 0 ? 1 : val); 40 /* 41 * The standard requires that longjmp() ensures that val is not zero. 42 * __context_restore doesn't do that, so we do it here. 43 */ 44 __context_restore(env, val == 0 ? 1 : val); 42 45 } 43 46
Note:
See TracChangeset
for help on using the changeset viewer.