procdefs.ld.boot 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*************************************************************************
  2. * Processor-specific object file. Contains SFR definitions.
  3. *************************************************************************/
  4. INPUT("processor.o")
  5. /*************************************************************************
  6. * For interrupt vector handling
  7. *************************************************************************/
  8. PROVIDE(_vector_spacing = 0x00000001);
  9. _ebase_address = 0x9D005000;
  10. /*************************************************************************
  11. * Memory Address Equates
  12. *************************************************************************/
  13. _RESET_ADDR = 0x9D006000;
  14. _BEV_EXCPT_ADDR = 0x9D006380;
  15. _DBG_EXCPT_ADDR = 0x9D006480;
  16. _DBG_CODE_ADDR = 0xBFC02000;
  17. _GEN_EXCPT_ADDR = _ebase_address + 0x180;
  18. /*************************************************************************
  19. * Memory Regions
  20. *
  21. * Memory regions without attributes cannot be used for orphaned sections.
  22. * Only sections specifically assigned to these regions can be allocated
  23. * into these regions.
  24. *************************************************************************/
  25. MEMORY
  26. {
  27. kseg0_program_mem (rx) : ORIGIN = 0x9D006A00, LENGTH = 0x7A600
  28. kseg0_boot_mem : ORIGIN = 0x9D006490, LENGTH = 0x970
  29. exception_mem : ORIGIN = 0x9D005000, LENGTH = 0x1000
  30. kseg1_boot_mem : ORIGIN = 0x9D006000, LENGTH = 0x490
  31. debug_exec_mem : ORIGIN = 0xBFC02000, LENGTH = 0xFF0
  32. config3 : ORIGIN = 0xBFC02FF0, LENGTH = 0x4
  33. config2 : ORIGIN = 0xBFC02FF4, LENGTH = 0x4
  34. config1 : ORIGIN = 0xBFC02FF8, LENGTH = 0x4
  35. config0 : ORIGIN = 0xBFC02FFC, LENGTH = 0x4
  36. kseg1_data_mem (w!x) : ORIGIN = 0xA0000000, LENGTH = 0x8000
  37. sfrs : ORIGIN = 0xBF800000, LENGTH = 0x100000
  38. }
  39. SECTIONS
  40. {
  41. .config_BFC02FF0 : {
  42. KEEP(*(.config_BFC02FF0))
  43. } > config3
  44. .config_BFC02FF4 : {
  45. KEEP(*(.config_BFC02FF4))
  46. } > config2
  47. .config_BFC02FF8 : {
  48. KEEP(*(.config_BFC02FF8))
  49. } > config1
  50. .config_BFC02FFC : {
  51. KEEP(*(.config_BFC02FFC))
  52. } > config0
  53. }