boot.s 702 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #
  2. ! $Source$
  3. ! $State$
  4. ! $Revision$
  5. ! Declare segments (the order is important).
  6. .sect .text
  7. .sect .rom
  8. .sect .data
  9. .sect .bss
  10. .sect .text
  11. begtext:
  12. ! This code is placed at the beginning of the ELF executable and is the
  13. ! first thing that runs.
  14. jmp __m_a_i_n
  15. ! This provides an emergency exit routine used by EM.
  16. .define EXIT
  17. .extern EXIT
  18. EXIT:
  19. push 1
  20. jmp __exit
  21. ! Define symbols at the beginning of our various segments, so that we can find
  22. ! them. (Except .text, which has already been done.)
  23. .sect .data; begdata:
  24. .sect .rom; begrom:
  25. .sect .bss; begbss:
  26. ! Some magic data. All EM systems need these.
  27. .define .trppc, .ignmask
  28. .comm .trppc, 4
  29. .comm .ignmask, 4