switch_to.h 284 B

1234567891011
  1. #ifndef _ASM_SCORE_SWITCH_TO_H
  2. #define _ASM_SCORE_SWITCH_TO_H
  3. extern void *resume(void *last, void *next, void *next_ti);
  4. #define switch_to(prev, next, last) \
  5. do { \
  6. (last) = resume(prev, next, task_thread_info(next)); \
  7. } while (0)
  8. #endif /* _ASM_SCORE_SWITCH_TO_H */