setup.h 854 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // SPDX-License-Identifier: GPL-2.0
  2. #ifndef __ARM64_ASM_SETUP_H
  3. #define __ARM64_ASM_SETUP_H
  4. #include <linux/string.h>
  5. #include <uapi/asm/setup.h>
  6. void *get_early_fdt_ptr(void);
  7. void early_fdt_map(u64 dt_phys);
  8. /*
  9. * These two variables are used in the head.S file.
  10. */
  11. extern phys_addr_t __fdt_pointer __initdata;
  12. extern u64 __cacheline_aligned boot_args[4];
  13. static inline bool arch_parse_debug_rodata(char *arg)
  14. {
  15. extern bool rodata_enabled;
  16. extern bool rodata_full;
  17. if (!arg)
  18. return false;
  19. if (!strcmp(arg, "full")) {
  20. rodata_enabled = rodata_full = true;
  21. return true;
  22. }
  23. if (!strcmp(arg, "off")) {
  24. rodata_enabled = rodata_full = false;
  25. return true;
  26. }
  27. if (!strcmp(arg, "on")) {
  28. rodata_enabled = true;
  29. rodata_full = false;
  30. return true;
  31. }
  32. return false;
  33. }
  34. #define arch_parse_debug_rodata arch_parse_debug_rodata
  35. #endif