Exemple #1
0
void arch_context_switch(task_t *oldtask, task_t *newtask)
{
	/* printk("oldtask->sp=0x%x, newtask->sp=0x%x\n", */
	/*        oldtask->sp, newtask->sp); */
	cpu_switch_mm((unsigned long)newtask->mm.pgd);
	arm_context_switch(&oldtask->sp, newtask->sp);
}
Exemple #2
0
void arch_context_switch(thread_t *oldthread, thread_t *newthread)
{
//	dprintf("arch_context_switch: old %p (%s), new %p (%s)\n", oldthread, oldthread->name, newthread, newthread->name);
#if ARM_WITH_VFP
    arm_fpu_thread_swap(oldthread, newthread);
#endif

	arm_context_switch(&oldthread->arch.sp, newthread->arch.sp);

}
Exemple #3
0
void arch_context_switch(thread_t *oldthread, thread_t *newthread)
{
//	dprintf("arch_context_switch: old %p (%s), new %p (%s)\n", oldthread, oldthread->name, newthread, newthread->name);
	arm_context_switch(&oldthread->arch.sp, newthread->arch.sp);
}