kdump.h 926 B

12345678910111213141516171819202122232425262728293031323334
  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 KDUMP_TRAMPOLINE_START 0x0100
  11. #define KDUMP_TRAMPOLINE_END 0x3000
  12. #define KDUMP_MIN_TCE_ENTRIES 2048
  13. #endif /* CONFIG_CRASH_DUMP */
  14. #ifndef __ASSEMBLY__
  15. #if defined(CONFIG_CRASH_DUMP) && !defined(CONFIG_RELOCATABLE)
  16. extern void reserve_kdump_trampoline(void);
  17. extern void setup_kdump_trampoline(void);
  18. #else
  19. /* !CRASH_DUMP || RELOCATABLE */
  20. static inline void reserve_kdump_trampoline(void) { ; }
  21. static inline void setup_kdump_trampoline(void) { ; }
  22. #endif
  23. #endif /* __ASSEMBLY__ */
  24. #endif /* __PPC64_KDUMP_H */