bootstrap.S 471 B

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