MCPcopy Create free account
hub / github.com/HelenOS/helenos / current_initialize

Function current_initialize

kernel/generic/src/proc/current.c:54–62  ·  view source on GitHub ↗

Initialize CURRENT structure * * Initialize CURRENT structure passed as argument. * * @param the CURRENT structure to be initialized. * */

Source from the content-addressed store, hash-verified

52 *
53 */
54void current_initialize(current_t *the)
55{
56 the->preemption = 0;
57 the->cpu = NULL;
58 the->thread = NULL;
59 the->task = NULL;
60 the->as = NULL;
61 the->magic = MAGIC;
62}
63
64/** Copy CURRENT structure
65 *

Callers 3

main_bsp_separated_stackFunction · 0.85
main_apFunction · 0.85
thread_createFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected