kdump.h 1006 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. #ifdef CONFIG_CRASH_DUMP
  10. #define PHYSICAL_START KDUMP_KERNELBASE
  11. #define KDUMP_TRAMPOLINE_START 0x0100
  12. #define KDUMP_TRAMPOLINE_END 0x3000
  13. #define KDUMP_MIN_TCE_ENTRIES 2048
  14. #else /* !CONFIG_CRASH_DUMP */
  15. #define PHYSICAL_START 0x0
  16. #endif /* CONFIG_CRASH_DUMP */
  17. #ifndef __ASSEMBLY__
  18. #ifdef CONFIG_CRASH_DUMP
  19. extern void reserve_kdump_trampoline(void);
  20. extern void setup_kdump_trampoline(void);
  21. #else /* !CONFIG_CRASH_DUMP */
  22. static inline void reserve_kdump_trampoline(void) { ; }
  23. static inline void setup_kdump_trampoline(void) { ; }
  24. #endif /* CONFIG_CRASH_DUMP */
  25. #endif /* __ASSEMBLY__ */
  26. #endif /* __PPC64_KDUMP_H */