crash.c 838 B

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. * Architecture specific (x86_64) functions for kexec based crash dumps.
  3. *
  4. * Created by: Hariprasad Nellitheertha (hari@in.ibm.com)
  5. *
  6. * Copyright (C) IBM Corporation, 2004. All rights reserved.
  7. *
  8. */
  9. #include <linux/init.h>
  10. #include <linux/types.h>
  11. #include <linux/kernel.h>
  12. #include <linux/smp.h>
  13. #include <linux/reboot.h>
  14. #include <linux/kexec.h>
  15. #include <asm/processor.h>
  16. #include <asm/hardirq.h>
  17. #include <asm/nmi.h>
  18. #include <asm/hw_irq.h>
  19. note_buf_t crash_notes[NR_CPUS];
  20. void machine_crash_shutdown(struct pt_regs *regs)
  21. {
  22. /* This function is only called after the system
  23. * has paniced or is otherwise in a critical state.
  24. * The minimum amount of code to allow a kexec'd kernel
  25. * to run successfully needs to happen here.
  26. *
  27. * In practice this means shooting down the other cpus in
  28. * an SMP system.
  29. */
  30. }