lowlevel_init.S 505 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * (C) Copyright 2016
  4. * Cédric Schieli <cschieli@gmail.com>
  5. */
  6. #include <config.h>
  7. .align 8
  8. .global fw_dtb
  9. fw_dtb:
  10. .dword 0x0
  11. /*
  12. * Routine: save_boot_params (called after reset from start.S)
  13. * Description: save ATAG/FDT address provided by the firmware at boot time
  14. */
  15. .global save_boot_params
  16. save_boot_params:
  17. /* The firmware provided ATAG/FDT address can be found in r2/x0 */
  18. adr x8, fw_dtb
  19. str x0, [x8]
  20. /* Returns */
  21. b save_boot_params_ret