return by accident.
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
void init_sched(void);
void run_idle_thread(void);
struct thread* create_thread(char *name, void (*function)(void *), void *data);
+void exit_thread(void) __attribute__((noreturn));
void schedule(void);
#define current get_current()
list_add(&thread->thread_list, &exited_threads);
local_irq_restore(flags);
/* Schedule will free the resources */
- schedule();
+ while(1)
+ {
+ schedule();
+ printk("schedule() returned! Trying again\n");
+ }
}
void block(struct thread *thread)