kexec.h 875 B

12345678910111213141516171819202122232425262728
  1. #ifndef _X86_64_KEXEC_H
  2. #define _X86_64_KEXEC_H
  3. #include <asm/page.h>
  4. #include <asm/proto.h>
  5. /*
  6. * KEXEC_SOURCE_MEMORY_LIMIT maximum page get_free_page can return.
  7. * I.e. Maximum page that is mapped directly into kernel memory,
  8. * and kmap is not required.
  9. *
  10. * So far x86_64 is limited to 40 physical address bits.
  11. */
  12. /* Maximum physical address we can use pages from */
  13. #define KEXEC_SOURCE_MEMORY_LIMIT (0xFFFFFFFFFFUL)
  14. /* Maximum address we can reach in physical address mode */
  15. #define KEXEC_DESTINATION_MEMORY_LIMIT (0xFFFFFFFFFFUL)
  16. /* Maximum address we can use for the control pages */
  17. #define KEXEC_CONTROL_MEMORY_LIMIT (0xFFFFFFFFFFUL)
  18. /* Allocate one page for the pdp and the second for the code */
  19. #define KEXEC_CONTROL_CODE_SIZE (4096UL + 4096UL)
  20. /* The native architecture */
  21. #define KEXEC_ARCH KEXEC_ARCH_X86_64
  22. #endif /* _X86_64_KEXEC_H */