src/sys/arm/arm/vm_machdep.c
/*
 * Set that machine state for performing an upcall that starts
 * the entry function with the given argument.
 */
Set that machine state for performing an upcall that starts
the entry function with the given argument.
Set that machine state for performing an upcall that starts the entry function with the given argument .
void
cpu_set_upcall(struct thread *td, void (*entry)(void *), void *arg,
	stack_t *stack)
{
	struct trapframe *tf = td->td_frame;
	tf->tf_usr_sp = STACKALIGN((int)stack->ss_sp + stack->ss_size);
	tf->tf_pc = (int)entry;
	tf->tf_r0 = (int)arg;
	tf->tf_spsr = PSR_USR32_MODE;
}
void cpu_set_upcall ( struct thread * td , void ( * entry ) ( void * ) , void * arg , stack_t * stack ) { struct trapframe * tf = td -> td_frame ; tf -> tf_usr_sp = STACKALIGN ( ( int ) stack -> ss_sp + stack -> ss_size ) ; tf -> tf_pc = ( int ) entry ; tf -> tf_r0 = ( int ) arg ; tf -> tf_spsr = PSR_USR32_MODE ; }
Set that machine state for performing an upcall that starts
 the entry function with the given argument.
Set that machine state for performing an upcall that starts the entry function with the given argument .