process.c 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. * linux/arch/cris/kernel/process.c
  3. *
  4. * Copyright (C) 1995 Linus Torvalds
  5. * Copyright (C) 2000-2002 Axis Communications AB
  6. *
  7. * Authors: Bjorn Wesen (bjornw@axis.com)
  8. *
  9. */
  10. /*
  11. * This file handles the architecture-dependent parts of process handling..
  12. */
  13. #include <linux/atomic.h>
  14. #include <asm/pgtable.h>
  15. #include <asm/uaccess.h>
  16. #include <asm/irq.h>
  17. #include <linux/module.h>
  18. #include <linux/spinlock.h>
  19. #include <linux/init_task.h>
  20. #include <linux/sched.h>
  21. #include <linux/fs.h>
  22. #include <linux/user.h>
  23. #include <linux/elfcore.h>
  24. #include <linux/mqueue.h>
  25. #include <linux/reboot.h>
  26. #include <linux/rcupdate.h>
  27. //#define DEBUG
  28. extern void default_idle(void);
  29. void (*pm_power_off)(void);
  30. EXPORT_SYMBOL(pm_power_off);
  31. void arch_cpu_idle(void)
  32. {
  33. default_idle();
  34. }
  35. void hard_reset_now (void);
  36. void machine_restart(char *cmd)
  37. {
  38. hard_reset_now();
  39. }
  40. /*
  41. * Similar to machine_power_off, but don't shut off power. Add code
  42. * here to freeze the system for e.g. post-mortem debug purpose when
  43. * possible. This halt has nothing to do with the idle halt.
  44. */
  45. void machine_halt(void)
  46. {
  47. }
  48. /* If or when software power-off is implemented, add code here. */
  49. void machine_power_off(void)
  50. {
  51. }
  52. /*
  53. * When a process does an "exec", machine state like FPU and debug
  54. * registers need to be reset. This is a hook function for that.
  55. * Currently we don't have any such state to reset, so this is empty.
  56. */
  57. void flush_thread(void)
  58. {
  59. }
  60. /* Fill in the fpu structure for a core dump. */
  61. int dump_fpu(struct pt_regs *regs, elf_fpregset_t *fpu)
  62. {
  63. return 0;
  64. }