armstub8_header.S 778 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * Copyright (c) 2019-2024, Arm Limited and Contributors. All rights reserved.
  3. *
  4. * SPDX-License-Identifier: BSD-3-Clause
  5. */
  6. /*
  7. * armstub8.bin header to let the GPU firmware recognise this code.
  8. * It will then write the load address of the kernel image and the DT
  9. * after the header magic in RAM, so we can read those addresses at runtime.
  10. */
  11. .text
  12. b armstub8_end
  13. .global stub_magic
  14. .global dtb_ptr32
  15. .global kernel_entry32
  16. .org 0xf0
  17. armstub8:
  18. stub_magic:
  19. .word 0x5afe570b
  20. stub_version:
  21. .word 0
  22. dtb_ptr32:
  23. .word 0x0
  24. kernel_entry32:
  25. .word 0x0
  26. /*
  27. * Technically an offset of 0x100 would suffice, but the follow-up code
  28. * (bl31_entrypoint.S at BL31_BASE) needs to be page aligned, so pad here
  29. * till the end of the first 4K page.
  30. */
  31. .org 0x1000
  32. armstub8_end: