Ejemplo n.º 1
0
// forkret -- the first kernel entry point of a new thread/process
// NOTE: the addr of forkret is setted in copy_thread function
//       after switch_to, the current proc will execute here.
void forkret(void)
{
	if (!trap_in_kernel(current->tf)) {
		kern_leave();
	}
	forkrets(current->tf);
}
Ejemplo n.º 2
0
// forkret -- the first kernel entry point of a new thread/process
// NOTE: the addr of forkret is setted in copy_thread function
//       after switch_to, the current proc will execute here.
static void
forkret(void) {
    forkrets(current->tf);
}