kexec.h 980 B

123456789101112131415161718192021222324252627282930313233
  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. #define MAX_NOTE_BYTES 1024
  23. typedef u32 note_buf_t[MAX_NOTE_BYTES/4];
  24. extern note_buf_t crash_notes[];
  25. #endif /* _X86_64_KEXEC_H */