system_64.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #ifndef __ASM_SH_SYSTEM_64_H
  2. #define __ASM_SH_SYSTEM_64_H
  3. /*
  4. * include/asm-sh/system_64.h
  5. *
  6. * Copyright (C) 2000, 2001 Paolo Alberelli
  7. * Copyright (C) 2003 Paul Mundt
  8. * Copyright (C) 2004 Richard Curnow
  9. *
  10. * This file is subject to the terms and conditions of the GNU General Public
  11. * License. See the file "COPYING" in the main directory of this archive
  12. * for more details.
  13. */
  14. #include <asm/processor.h>
  15. /*
  16. * switch_to() should switch tasks to task nr n, first
  17. */
  18. struct task_struct *sh64_switch_to(struct task_struct *prev,
  19. struct thread_struct *prev_thread,
  20. struct task_struct *next,
  21. struct thread_struct *next_thread);
  22. #define switch_to(prev,next,last) \
  23. do { \
  24. if (last_task_used_math != next) { \
  25. struct pt_regs *regs = next->thread.uregs; \
  26. if (regs) regs->sr |= SR_FD; \
  27. } \
  28. last = sh64_switch_to(prev, &prev->thread, next, \
  29. &next->thread); \
  30. } while (0)
  31. #define __uses_jump_to_uncached
  32. #define jump_to_uncached() do { } while (0)
  33. #define back_to_cached() do { } while (0)
  34. #endif /* __ASM_SH_SYSTEM_64_H */