rom.S 401 B

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