crash.c 916 B

1234567891011121314151617181920212223242526272829303132333435363738
  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/irq.h>
  14. #include <linux/reboot.h>
  15. #include <linux/kexec.h>
  16. #include <asm/processor.h>
  17. #include <asm/hardirq.h>
  18. #include <asm/nmi.h>
  19. #include <asm/hw_irq.h>
  20. #define MAX_NOTE_BYTES 1024
  21. typedef u32 note_buf_t[MAX_NOTE_BYTES/4];
  22. note_buf_t crash_notes[NR_CPUS];
  23. void machine_crash_shutdown(void)
  24. {
  25. /* This function is only called after the system
  26. * has paniced or is otherwise in a critical state.
  27. * The minimum amount of code to allow a kexec'd kernel
  28. * to run successfully needs to happen here.
  29. *
  30. * In practice this means shooting down the other cpus in
  31. * an SMP system.
  32. */
  33. }