switch_to.h 367 B

123456789101112131415
  1. #ifndef __ALPHA_SWITCH_TO_H
  2. #define __ALPHA_SWITCH_TO_H
  3. struct task_struct;
  4. extern struct task_struct *alpha_switch_to(unsigned long, struct task_struct *);
  5. #define switch_to(P,N,L) \
  6. do { \
  7. (L) = alpha_switch_to(virt_to_phys(&task_thread_info(N)->pcb), (P)); \
  8. check_mmu_context(); \
  9. } while (0)
  10. #endif /* __ALPHA_SWITCH_TO_H */