Add a setjmp/longjmp test between user contexts
commit8d8ae5eebd2c81064cfe88d877940ea4e6046d16
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 20 Dec 2023 15:34:42 +0000 (20 07:34 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 1 Jan 2024 23:55:38 +0000 (1 15:55 -0800)
tree24248ceac99cd3a81b2a40ded7aa510deceb28d9
parentb5dcccfb12385ee492eb074f6beb9ead56b5e5fd
Add a setjmp/longjmp test between user contexts

Verify that setjmp and longjmp work correctly between user contexts.
Arrange stacks for uctx_func1 and uctx_func2 so that ____longjmp_chk
works when setjmp and longjmp are called from different user contexts.

Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
stdlib/Makefile
stdlib/tst-swapcontext2.c [new file with mode: 0644]