kexec.h 922 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef _SH_KEXEC_H
  2. #define _SH_KEXEC_H
  3. /*
  4. * KEXEC_SOURCE_MEMORY_LIMIT maximum page get_free_page can return.
  5. * I.e. Maximum page that is mapped directly into kernel memory,
  6. * and kmap is not required.
  7. *
  8. * Someone correct me if FIXADDR_START - PAGEOFFSET is not the correct
  9. * calculation for the amount of memory directly mappable into the
  10. * kernel memory space.
  11. */
  12. /* Maximum physical address we can use pages from */
  13. #define KEXEC_SOURCE_MEMORY_LIMIT (-1UL)
  14. /* Maximum address we can reach in physical address mode */
  15. #define KEXEC_DESTINATION_MEMORY_LIMIT (-1UL)
  16. /* Maximum address we can use for the control code buffer */
  17. #define KEXEC_CONTROL_MEMORY_LIMIT TASK_SIZE
  18. #define KEXEC_CONTROL_CODE_SIZE 4096
  19. /* The native architecture */
  20. #define KEXEC_ARCH KEXEC_ARCH_SH
  21. #ifndef __ASSEMBLY__
  22. extern void machine_shutdown(void);
  23. extern void *crash_notes;
  24. #endif /* __ASSEMBLY__ */
  25. #endif /* _SH_KEXEC_H */