Last change
on this file since 645 was
631,
checked in by alain, 11 years ago
|
Introducing support for RAMDISK in giet_tsar
|
File size:
2.3 KB
|
Rev | Line | |
---|
[623] | 1 | /********************************************************** |
---|
| 2 | File : ldscript |
---|
| 3 | Author : Alain Greiner |
---|
| 4 | Date : January 2014 |
---|
| 5 | **********************************************************/ |
---|
| 6 | |
---|
| 7 | /* definition of the base address for all segments |
---|
| 8 | The peripherals base addresses are referenced by the |
---|
| 9 | software drivers and must be defined, even if the |
---|
| 10 | peripherals are not present in the architecture */ |
---|
| 11 | |
---|
[631] | 12 | seg_reset_base = 0x00000000; /* boot code */ |
---|
[623] | 13 | |
---|
[631] | 14 | seg_kcode_base = 0x00010000; /* kernel code */ |
---|
| 15 | seg_kdata_base = 0x00020000; /* kernel cacheable data */ |
---|
| 16 | seg_kunc_base = 0x00030000; /* kernel uncacheable data */ |
---|
[623] | 17 | |
---|
[631] | 18 | seg_code_base = 0x00040000; /* application code */ |
---|
| 19 | seg_data_base = 0x00050000; /* application data */ |
---|
[623] | 20 | |
---|
[631] | 21 | seg_heap_base = 0x00100000; /* heaps for applications */ |
---|
| 22 | seg_stack_base = 0x00300000; /* stacks ifor applications */ |
---|
[623] | 23 | |
---|
[631] | 24 | seg_ramdisk_base = 0x00800000; /* virtual disk */ |
---|
[623] | 25 | |
---|
[631] | 26 | seg_xcu_base = 0xF0000000; /* controler XCU */ |
---|
| 27 | seg_tty_base = 0xF4000000; /* controler TTY */ |
---|
| 28 | seg_fbf_base = 0xF3000000; /* controler FBF */ |
---|
| 29 | seg_ioc_base = 0xF2000000; /* controler IOC */ |
---|
| 30 | seg_nic_base = 0xF7000000; /* controler NIC */ |
---|
| 31 | seg_cma_base = 0xF8000000; /* controler CMA */ |
---|
| 32 | seg_pic_base = 0xF9000000; /* controler PIC */ |
---|
| 33 | seg_mmc_base = 0xE0000000; /* config MMC */ |
---|
[623] | 34 | |
---|
[631] | 35 | |
---|
[623] | 36 | /* Grouping sections into segments */ |
---|
| 37 | |
---|
| 38 | SECTIONS |
---|
| 39 | { |
---|
| 40 | . = seg_kcode_base; |
---|
| 41 | seg_kcode : { |
---|
| 42 | *(.giet) |
---|
| 43 | *(.switch) |
---|
| 44 | *(.drivers) |
---|
| 45 | *(.isr) |
---|
| 46 | } |
---|
| 47 | . = seg_kdata_base; |
---|
| 48 | seg_kdata : { |
---|
| 49 | *(.kdata) |
---|
| 50 | } |
---|
| 51 | . = seg_kunc_base; |
---|
| 52 | seg_kunc : { |
---|
| 53 | *(.unckdata) |
---|
| 54 | } |
---|
| 55 | . = seg_kdata_base; |
---|
| 56 | seg_kdata : { |
---|
| 57 | *(.ksave) |
---|
| 58 | } |
---|
| 59 | . = seg_code_base; |
---|
| 60 | seg_code : { |
---|
| 61 | *(.text) |
---|
| 62 | } |
---|
| 63 | . = seg_reset_base; |
---|
| 64 | seg_reset : { |
---|
| 65 | *(.reset) |
---|
| 66 | } |
---|
| 67 | . = seg_data_base; |
---|
| 68 | seg_data : { |
---|
| 69 | *(.rodata) |
---|
| 70 | . = ALIGN(4); |
---|
| 71 | *(.rodata.*) |
---|
| 72 | . = ALIGN(4); |
---|
| 73 | *(.data) |
---|
| 74 | . = ALIGN(4); |
---|
| 75 | *(.sdata) |
---|
| 76 | . = ALIGN(4); |
---|
| 77 | *(.bss) |
---|
| 78 | *(COMMON) |
---|
| 79 | *(.sbss) |
---|
| 80 | } |
---|
| 81 | } |
---|
| 82 | |
---|
Note: See
TracBrowser
for help on using the repository browser.