kdump.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. #ifndef _PPC64_KDUMP_H
  2. #define _PPC64_KDUMP_H
  3. /* Kdump kernel runs at 32 MB, change at your peril. */
  4. #define KDUMP_KERNELBASE 0x2000000
  5. /* How many bytes to reserve at zero for kdump. The reserve limit should
  6. * be greater or equal to the trampoline's end address.
  7. * Reserve to the end of the FWNMI area, see head_64.S */
  8. #define KDUMP_RESERVE_LIMIT 0x10000 /* 64K */
  9. /*
  10. * Used to differentiate between relocatable kdump kernel and other
  11. * kernels
  12. */
  13. #define KDUMP_SIGNATURE 0xfeed1234
  14. #ifdef CONFIG_CRASH_DUMP
  15. #define KDUMP_TRAMPOLINE_START 0x0100
  16. #define KDUMP_TRAMPOLINE_END 0x3000
  17. #define KDUMP_MIN_TCE_ENTRIES 2048
  18. #endif /* CONFIG_CRASH_DUMP */
  19. #ifndef __ASSEMBLY__
  20. extern unsigned long __kdump_flag;
  21. #if defined(CONFIG_CRASH_DUMP) && !defined(CONFIG_RELOCATABLE)
  22. extern void reserve_kdump_trampoline(void);
  23. extern void setup_kdump_trampoline(void);
  24. #else
  25. /* !CRASH_DUMP || RELOCATABLE */
  26. static inline void reserve_kdump_trampoline(void) { ; }
  27. static inline void setup_kdump_trampoline(void) { ; }
  28. #endif
  29. #endif /* __ASSEMBLY__ */
  30. #endif /* __PPC64_KDUMP_H */