Files
u-boot/doc/api
Jerome Forissier 1c8e166fb5 arch: introduce initjmp() and Kconfig symbol HAVE_INITJMP
Add the HAVE_INIJMP symbol to be set by architectures that support
initjmp(), a non-standard extension to setjmp()/longjmp() allowing to
initialize a jump buffer with a function pointer and a stack pointer.
This will be useful to later introduce threads. With this new function
it becomes possible to longjmp() to a particular function pointer
(rather than to a point previously reached during program execution as
is the case with setjmp()), and with a custom stack. Both things are
needed to spin off a new thread. Then the usual setjmp()/longjmp() pair
is enough to save and restore a context, i.e., switch thread.

Add the initjmp() prototype to <include/setjmp.h> since it is common to
all architectures.

Add an entry to the API documentation: doc/api/setjmp.rst.

Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
2025-04-23 13:19:44 -06:00
..
2022-02-25 01:41:04 -05:00
2023-09-02 06:03:42 +02:00
2020-10-30 10:56:11 -04:00
2024-10-10 16:02:20 -06:00
2021-01-27 12:52:57 +01:00
2022-06-08 14:00:22 -04:00
2020-06-14 21:07:20 +02:00
2020-11-05 09:11:31 -07:00
2020-10-22 09:54:53 -04:00