Last change
on this file since 108 was
101,
checked in by rosiere, 16 years ago
|
1) Add soc test
2) fix bug (Pc management, Decod and execute, Update prediction ...)
|
-
Property svn:keywords set to
Id
|
File size:
1.4 KB
|
Rev | Line | |
---|
[88] | 1 | ENTRY(_start) |
---|
| 2 | OUTPUT_ARCH(or32) |
---|
| 3 | /* |
---|
| 4 | __DYNAMIC = 0; |
---|
| 5 | */ |
---|
| 6 | |
---|
| 7 | /* |
---|
[101] | 8 | * Memory Mapping : cf ${MORPHEO_TOPLEVEL}/IPs/systemC/shared/mapping_memory.h |
---|
[88] | 9 | */ |
---|
| 10 | |
---|
| 11 | MEMORY |
---|
| 12 | { |
---|
| 13 | iram : ORIGIN = 0x00000000, LENGTH = 0x01000000 |
---|
| 14 | dram : ORIGIN = 0x10000000, LENGTH = 0x10000000 |
---|
[101] | 15 | dram_unc : ORIGIN = 0x80000000, LENGTH = 0x01000000 |
---|
[88] | 16 | } |
---|
| 17 | |
---|
| 18 | /* |
---|
| 19 | * Allocate the stack to be at the top of memory, since the stack |
---|
| 20 | * grows down. |
---|
| 21 | */ |
---|
[101] | 22 | PROVIDE (_stack = 0x42000000 - 4); |
---|
[88] | 23 | PROVIDE (_stack_alloc = 0x00500000 ); |
---|
| 24 | PROVIDE (_tty = 0xa0000000 ); |
---|
[101] | 25 | PROVIDE (_ramlock = 0xb0000000 ); |
---|
| 26 | PROVIDE (_sim2os = 0xc0000000 ); |
---|
[88] | 27 | |
---|
| 28 | SECTIONS |
---|
| 29 | { |
---|
| 30 | /* |
---|
| 31 | * Code |
---|
| 32 | */ |
---|
| 33 | |
---|
| 34 | .text : |
---|
| 35 | { |
---|
| 36 | *(.text) |
---|
| 37 | } > iram |
---|
| 38 | |
---|
| 39 | /* |
---|
| 40 | * Data |
---|
| 41 | */ |
---|
| 42 | |
---|
| 43 | .rodata : |
---|
| 44 | { |
---|
| 45 | *(.rodata); |
---|
| 46 | *(.rodata.*); |
---|
| 47 | } > dram |
---|
| 48 | |
---|
| 49 | .data : |
---|
| 50 | { |
---|
| 51 | sdata = .; |
---|
| 52 | _sdata = .; |
---|
| 53 | *(.data) |
---|
| 54 | edata = .; |
---|
| 55 | _edata = .; |
---|
| 56 | } > dram |
---|
| 57 | .bss SIZEOF(.data) + ADDR(.data) : |
---|
| 58 | { |
---|
| 59 | sbss = . ; |
---|
| 60 | _sbss = . ; |
---|
| 61 | __bss_start = ALIGN(0x8); |
---|
| 62 | ___bss_start = ALIGN(0x8); |
---|
| 63 | *(.bss) |
---|
| 64 | *(COMMON) |
---|
| 65 | end = ALIGN(0x8); |
---|
| 66 | _end = ALIGN(0x8); |
---|
| 67 | __end = ALIGN(0x8); |
---|
| 68 | ebss = .; |
---|
| 69 | _ebss = .; |
---|
| 70 | } |
---|
| 71 | /* |
---|
| 72 | .stab 0 (NOLOAD) : |
---|
| 73 | { |
---|
| 74 | [ .stab ] |
---|
| 75 | } |
---|
| 76 | |
---|
| 77 | .stabstr 0 (NOLOAD) : |
---|
| 78 | { |
---|
| 79 | [ .stabstr ] |
---|
| 80 | } |
---|
| 81 | */ |
---|
| 82 | |
---|
| 83 | |
---|
| 84 | /* |
---|
| 85 | * Suppression de la section comment |
---|
| 86 | */ |
---|
| 87 | |
---|
| 88 | /DISCARD/ : |
---|
| 89 | { |
---|
| 90 | *(.comment) |
---|
| 91 | *(.gnu.*) |
---|
| 92 | *(.stab*) |
---|
| 93 | } |
---|
| 94 | } |
---|
| 95 | |
---|
Note: See
TracBrowser
for help on using the repository browser.