Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef __ALPHA_SWITCH_TO_H
0003 #define __ALPHA_SWITCH_TO_H
0004 
0005 
0006 struct task_struct;
0007 extern struct task_struct *alpha_switch_to(unsigned long, struct task_struct *);
0008 
0009 #define switch_to(P,N,L)                         \
0010   do {                                   \
0011     (L) = alpha_switch_to(virt_to_phys(&task_thread_info(N)->pcb), (P)); \
0012     check_mmu_context();                         \
0013   } while (0)
0014 
0015 #endif /* __ALPHA_SWITCH_TO_H */