kdump.h 959 B

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