Esempio n. 1
0
void * switch_kernel_to_user() {
	if (current==NULL)
	{
		return 0;
	}
	next_process();
	return current->process->regs;
}
Esempio n. 2
0
/*
 * Choose a new process to run.  This function is called from schedule()
 * in entry.S.
 */
struct pcb *_schedule(void)
{
	return (current = next_process());
}