kexec.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * kexec for arm64
  3. *
  4. * Copyright (C) Linaro.
  5. * Copyright (C) Huawei Futurewei Technologies.
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License version 2 as
  9. * published by the Free Software Foundation.
  10. */
  11. #ifndef _ARM64_KEXEC_H
  12. #define _ARM64_KEXEC_H
  13. /* Maximum physical address we can use pages from */
  14. #define KEXEC_SOURCE_MEMORY_LIMIT (-1UL)
  15. /* Maximum address we can reach in physical address mode */
  16. #define KEXEC_DESTINATION_MEMORY_LIMIT (-1UL)
  17. /* Maximum address we can use for the control code buffer */
  18. #define KEXEC_CONTROL_MEMORY_LIMIT (-1UL)
  19. #define KEXEC_CONTROL_PAGE_SIZE 4096
  20. #define KEXEC_ARCH KEXEC_ARCH_AARCH64
  21. #ifndef __ASSEMBLY__
  22. /**
  23. * crash_setup_regs() - save registers for the panic kernel
  24. *
  25. * @newregs: registers are saved here
  26. * @oldregs: registers to be saved (may be %NULL)
  27. */
  28. static inline void crash_setup_regs(struct pt_regs *newregs,
  29. struct pt_regs *oldregs)
  30. {
  31. /* Empty routine needed to avoid build errors. */
  32. }
  33. #endif /* __ASSEMBLY__ */
  34. #endif