os_refgrp_decl(static, thread_refgrp, "thread", NULL);
-void
+thread_t
thread_bootstrap(void)
{
/*
#endif /* CONFIG_DTRACE */
#if KPERF
- thread_template.kperf_flags = 0;
+ thread_template.kperf_ast = 0;
thread_template.kperf_pet_gen = 0;
thread_template.kperf_c_switch = 0;
thread_template.kperf_pet_cnt = 0;
/* fiddle with init thread to skip asserts in set_sched_pri */
init_thread.sched_pri = MAXPRI_KERNEL;
- machine_set_current_thread(&init_thread);
+ return &init_thread;
+}
+
+void
+thread_machine_init_template(void)
+{
+ machine_thread_template_init(&thread_template);
}
extern boolean_t allow_qos_policy_set;