bootstrap.S 565 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #include <xtensa/config/specreg.h>
  2. #include <xtensa/config/core.h>
  3. #include <linux/config.h>
  4. #include <asm/bootparam.h>
  5. /* ResetVector
  6. */
  7. .section .ResetVector.text, "ax"
  8. .global _ResetVector
  9. _ResetVector:
  10. _j reset
  11. .align 4
  12. RomInitAddr:
  13. .word 0xd0001000
  14. RomBootParam:
  15. .word _bootparam
  16. reset:
  17. l32r a0, RomInitAddr
  18. l32r a2, RomBootParam
  19. movi a3, 0
  20. movi a4, 0
  21. jx a0
  22. .align 4
  23. .section .bootstrap.data, "aw"
  24. .globl _bootparam
  25. _bootparam:
  26. .short BP_TAG_FIRST
  27. .short 4
  28. .long BP_VERSION
  29. .short BP_TAG_LAST
  30. .short 0
  31. .long 0