rom.S 433 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * ROM wrapper
  3. */
  4. #include "sections.h"
  5. #include "ioregs.h"
  6. #define __paste(x,y) x ## y
  7. #define _paste(x,y) __paste(x,y)
  8. .globl NAME
  9. __dram_rom
  10. .balign ABCMEMMAP_PAGE_SIZE, 0xff /* Required MMU granulatity */
  11. NAME :
  12. .incbin FILE
  13. .balign ABCMEMMAP_PAGE_SIZE, 0xff
  14. .type NAME, @object
  15. #define SIZE _paste(NAME,_size)
  16. .globl SIZE
  17. SIZE = . - NAME
  18. .size NAME , SIZE
  19. #define END _paste(NAME,_end)
  20. .globl END
  21. END = .