switch_to.h 629 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (C) 2006 Atmark Techno, Inc.
  3. *
  4. * This file is subject to the terms and conditions of the GNU General Public
  5. * License. See the file "COPYING" in the main directory of this archive
  6. * for more details.
  7. */
  8. #ifndef _ASM_MICROBLAZE_SWITCH_TO_H
  9. #define _ASM_MICROBLAZE_SWITCH_TO_H
  10. struct task_struct;
  11. struct thread_info;
  12. extern struct task_struct *_switch_to(struct thread_info *prev,
  13. struct thread_info *next);
  14. #define switch_to(prev, next, last) \
  15. do { \
  16. (last) = _switch_to(task_thread_info(prev), \
  17. task_thread_info(next)); \
  18. } while (0)
  19. #endif /* _ASM_MICROBLAZE_SWITCH_TO_H */