/arch/v850/kernel/as85ep1.ld

https://bitbucket.org/evzijst/gittest · Unknown · 49 lines · 41 code · 8 blank · 0 comment · 0 complexity · 4f3e75e6554c5923ef0c5bea33a18bf4 MD5 · raw file

  1. /* Linker script for the NEC AS85EP1 V850E evaluation board
  2. (CONFIG_V850E_AS85EP1). */
  3. MEMORY {
  4. /* 1MB of internal instruction memory. */
  5. iMEM0 : ORIGIN = 0, LENGTH = 0x00100000
  6. /* 1MB of static RAM. */
  7. SRAM : ORIGIN = SRAM_ADDR, LENGTH = SRAM_SIZE
  8. /* About 58MB of DRAM. This can actually be at one of two
  9. positions, determined by jump JP3; we have to use the first
  10. position because the second is partially out of processor
  11. instruction addressing range (though in the second position
  12. there's actually 64MB available). */
  13. SDRAM : ORIGIN = SDRAM_ADDR, LENGTH = SDRAM_SIZE
  14. }
  15. SECTIONS {
  16. .resetv : {
  17. __intv_start = . ;
  18. *(.intv.reset) /* Reset vector */
  19. } > iMEM0
  20. .sram : {
  21. RAMK_KRAM_CONTENTS
  22. /* We stick most of the interrupt vectors here; they'll be
  23. copied into the proper location by the early init code (we
  24. can't put them directly in the right place because of
  25. hardware bugs). The vectors shouldn't need to be
  26. relocated, so we don't have to use `> ... AT> ...' to
  27. split the load/vm addresses (and we can't because of
  28. problems with the loader). */
  29. . = ALIGN (0x10) ;
  30. __intv_copy_src_start = . ;
  31. *(.intv.common) /* Vectors common to all v850e proc. */
  32. *(.intv.mach) /* Machine-specific int. vectors. */
  33. . = ALIGN (0x10) ;
  34. __intv_copy_src_end = . ;
  35. } > SRAM
  36. /* Where we end up putting the vectors. */
  37. __intv_copy_dst_start = 0x10 ;
  38. __intv_copy_dst_end = __intv_copy_dst_start + (__intv_copy_src_end - __intv_copy_src_start) ;
  39. __intv_end = __intv_copy_dst_end ;
  40. .root : { ROOT_FS_CONTENTS } > SDRAM
  41. }