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

Function thread_alloc_space

src/lib/thread.c:232–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232static void *thread_alloc_space(struct thread *t, size_t bytes)
233{
234 /* Allocate the amount of space on the stack keeping the stack
235 * aligned to the architecture requirement. */
236 t->stack_current -= ALIGN_UP(bytes, ARCH_STACK_ALIGN_SIZE);
237
238 return (void *)t->stack_current;
239}
240
241static void threads_initialize(void)
242{

Callers 1

thread_run_untilFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected