kexec.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * include/asm-s390/kexec.h
  3. *
  4. * (C) Copyright IBM Corp. 2005
  5. *
  6. * Author(s): Rolf Adelsberger <adelsberger@de.ibm.com>
  7. *
  8. */
  9. #ifndef _S390_KEXEC_H
  10. #define _S390_KEXEC_H
  11. #include <asm/page.h>
  12. #include <asm/processor.h>
  13. /*
  14. * KEXEC_SOURCE_MEMORY_LIMIT maximum page get_free_page can return.
  15. * I.e. Maximum page that is mapped directly into kernel memory,
  16. * and kmap is not required.
  17. */
  18. /* Maximum physical address we can use pages from */
  19. #define KEXEC_SOURCE_MEMORY_LIMIT (-1UL)
  20. /* Maximum address we can reach in physical address mode */
  21. #define KEXEC_DESTINATION_MEMORY_LIMIT (-1UL)
  22. /* Maximum address we can use for the control pages */
  23. /* Not more than 2GB */
  24. #define KEXEC_CONTROL_MEMORY_LIMIT (1<<31)
  25. /* Allocate one page for the pdp and the second for the code */
  26. #define KEXEC_CONTROL_CODE_SIZE 4096
  27. /* The native architecture */
  28. #define KEXEC_ARCH KEXEC_ARCH_S390
  29. #define MAX_NOTE_BYTES 1024
  30. /* Provide a dummy definition to avoid build failures. */
  31. static inline void crash_setup_regs(struct pt_regs *newregs,
  32. struct pt_regs *oldregs) { }
  33. #endif /*_S390_KEXEC_H */