SMP - proc_ptr and bill_ptr initialization

- they should point somewhere
This commit is contained in:
Tomas Hruby
2010-09-15 14:10:24 +00:00
parent 865e21b884
commit 67f039540c
3 changed files with 11 additions and 5 deletions

View File

@@ -150,6 +150,8 @@ PUBLIC void proc_init(void)
for (i = 0; i < CONFIG_MAX_CPUS; i++) {
struct proc * ip = get_cpu_var_ptr(i, idle_proc);
ip->p_priv = &idle_priv;
/* must not let idle ever get scheduled */
ip->p_rts_flags |= RTS_PROC_STOP;
set_idle_name(ip->p_name, i);
}
}