FreeCalypso > hg > freecalypso-sw
comparison gsm-fw/finlink/ld-script.src @ 208:2abe6ade042d
gsm-fw FFS integration: ld script magic putting RAMFFS into ext.ram
| author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
|---|---|
| date | Wed, 25 Dec 2013 19:47:54 +0000 |
| parents | afceeeb2cba1 |
| children | f05ae34f7ca0 |
comparison
equal
deleted
inserted
replaced
| 207:c70c077243dd | 208:2abe6ade042d |
|---|---|
| 19 ` FLASH_OVERLAY : ORIGIN = 0, LENGTH = 0x2000 | 19 ` FLASH_OVERLAY : ORIGIN = 0, LENGTH = 0x2000 |
| 20 FLASH : ORIGIN = 0x2000, LENGTH = CONFIG_FWFLASH_SIZE - 0x2000') | 20 FLASH : ORIGIN = 0x2000, LENGTH = CONFIG_FWFLASH_SIZE - 0x2000') |
| 21 IRAM : ORIGIN = 0x00800000, LENGTH = CONFIG_IRAM_SIZE | 21 IRAM : ORIGIN = 0x00800000, LENGTH = CONFIG_IRAM_SIZE |
| 22 XRAM : ORIGIN = 0x01000000, LENGTH = CONFIG_XRAM_SIZE | 22 XRAM : ORIGIN = 0x01000000, LENGTH = CONFIG_XRAM_SIZE |
| 23 } | 23 } |
| 24 ifelse(FFS_IN_RAM,1,` | |
| 25 RAMFFS_BLKSIZE_BYTES = 1 << RAMFFS_BLKSIZE_LOG2; | |
| 26 RAMFFS_TOTAL_SIZE = RAMFFS_BLKSIZE_BYTES * RAMFFS_NBLOCKS; | |
| 27 ')dnl | |
| 24 | 28 |
| 25 SECTIONS { | 29 SECTIONS { |
| 26 /* XIP code, going into flash or XRAM emulating flash */ | 30 /* XIP code, going into flash or XRAM emulating flash */ |
| 27 xip.text : { | 31 xip.text : { |
| 28 *(xip.text*) | 32 *(xip.text*) |
| 103 } > IRAM | 107 } > IRAM |
| 104 | 108 |
| 105 ext.ram (NOLOAD) : { | 109 ext.ram (NOLOAD) : { |
| 106 *(ext.ram*) | 110 *(ext.ram*) |
| 107 . = ALIGN(4); | 111 . = ALIGN(4); |
| 112 ifelse(FFS_IN_RAM,1, | |
| 113 ` _RAMFFS_area = .; | |
| 114 . += RAMFFS_TOTAL_SIZE; | |
| 115 ')dnl | |
| 108 _xram_end = .; | 116 _xram_end = .; |
| 109 } > XRAM | 117 } > XRAM |
| 110 } | 118 } |
