kdump.h 906 B

1234567891011121314151617181920212223242526272829303132333435
  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. #ifdef CONFIG_CRASH_DUMP
  16. extern void reserve_kdump_trampoline(void);
  17. extern void setup_kdump_trampoline(void);
  18. #else /* !CONFIG_CRASH_DUMP */
  19. static inline void reserve_kdump_trampoline(void) { ; }
  20. static inline void setup_kdump_trampoline(void) { ; }
  21. #endif /* CONFIG_CRASH_DUMP */
  22. #endif /* __ASSEMBLY__ */
  23. #endif /* __PPC64_KDUMP_H */