setup.h 789 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. /*
  7. * These two variables are used in the head.S file.
  8. */
  9. extern phys_addr_t __fdt_pointer __initdata;
  10. extern u64 __cacheline_aligned boot_args[4];
  11. static inline bool arch_parse_debug_rodata(char *arg)
  12. {
  13. extern bool rodata_enabled;
  14. extern bool rodata_full;
  15. if (!arg)
  16. return false;
  17. if (!strcmp(arg, "full")) {
  18. rodata_enabled = rodata_full = true;
  19. return true;
  20. }
  21. if (!strcmp(arg, "off")) {
  22. rodata_enabled = rodata_full = false;
  23. return true;
  24. }
  25. if (!strcmp(arg, "on")) {
  26. rodata_enabled = true;
  27. rodata_full = false;
  28. return true;
  29. }
  30. return false;
  31. }
  32. #define arch_parse_debug_rodata arch_parse_debug_rodata
  33. #endif