bootstrap.S 539 B

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