MCPcopy Create free account
hub / github.com/coreboot/coreboot / call_wrapper_block_state

Function call_wrapper_block_state

src/lib/thread.c:162–172  ·  view source on GitHub ↗

Block the provided state until thread is complete. */

Source from the content-addressed store, hash-verified

160
161/* Block the provided state until thread is complete. */
162static asmlinkage void call_wrapper_block_state(void *arg)
163{
164 struct block_boot_state *bbs = arg;
165 struct thread *current = current_thread();
166 enum cb_err error;
167
168 boot_state_block(bbs->state, bbs->seq);
169 error = current->entry(current->entry_arg);
170 boot_state_unblock(bbs->state, bbs->seq);
171 terminate_thread(current, error);
172}
173
174/* Prepare a thread so that it starts by executing thread_entry(thread_arg).
175 * Within thread_entry() it will call func(arg). */

Callers

nothing calls this directly

Calls 4

current_threadFunction · 0.85
boot_state_blockFunction · 0.85
boot_state_unblockFunction · 0.85
terminate_threadFunction · 0.85

Tested by

no test coverage detected