L4Re Operating System Framework
Interface and Usage Documentation
|
Low-level Thread Functions. More...
Go to the source code of this file.
Macros | |
#define | __L4UTIL_THREAD_FUNC(name) void L4_NORETURN name(void) |
Defines a wrapper function that sets up the registers according to the calling conventions for the architecture. | |
#define __L4UTIL_THREAD_FUNC | ( | name | ) | void L4_NORETURN name(void) |
Defines a wrapper function that sets up the registers according to the calling conventions for the architecture.
Use this as a function header when starting a low-level thread where only stack and instruction pointer are in a well-defined state.
Example:
L4UTIL_THREAD_FUNC(helper_thread) { l4_infinite_loop(); }
thread_cap->ex_regs((l4_umword_t)helper_thread, stack_addr);