Last change
on this file since 628 was
623,
checked in by alain, 11 years ago
|
Introducing the soft_hello_giet application.
|
File size:
1.9 KB
|
Line | |
---|
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 | |
---|
12 | seg_reset_base = 0x10000000; /* le code de boot */ |
---|
13 | |
---|
14 | seg_kcode_base = 0x00001000; /* le code du système */ |
---|
15 | seg_kdata_base = 0x00010000; /* les donnees du système */ |
---|
16 | seg_kunc_base = 0x00020000; /* les données non cachées du système */ |
---|
17 | |
---|
18 | seg_code_base = 0x00030000; /* le code utilisateur */ |
---|
19 | seg_data_base = 0x00040000; /* les données utilisateur */ |
---|
20 | |
---|
21 | seg_heap_base = 0x00100000; /* le tas utilisateur */ |
---|
22 | seg_stack_base = 0x00400000; /* la pile utilisateur */ |
---|
23 | |
---|
24 | seg_xcu_base = 0xF0000000; /* controleur XCU */ |
---|
25 | seg_dma_base = 0xF1000000; /* controleur DMA */ |
---|
26 | seg_tty_base = 0xF2000000; /* controleur TTY */ |
---|
27 | seg_fbf_base = 0xF3000000; /* controleur FBF */ |
---|
28 | seg_ioc_base = 0xF4000000; /* controleur IOC */ |
---|
29 | |
---|
30 | |
---|
31 | /* Grouping sections into segments */ |
---|
32 | |
---|
33 | SECTIONS |
---|
34 | { |
---|
35 | . = seg_kcode_base; |
---|
36 | seg_kcode : { |
---|
37 | *(.giet) |
---|
38 | *(.switch) |
---|
39 | *(.drivers) |
---|
40 | *(.isr) |
---|
41 | } |
---|
42 | . = seg_kdata_base; |
---|
43 | seg_kdata : { |
---|
44 | *(.kdata) |
---|
45 | } |
---|
46 | . = seg_kunc_base; |
---|
47 | seg_kunc : { |
---|
48 | *(.unckdata) |
---|
49 | } |
---|
50 | . = seg_kdata_base; |
---|
51 | seg_kdata : { |
---|
52 | *(.ksave) |
---|
53 | } |
---|
54 | . = seg_code_base; |
---|
55 | seg_code : { |
---|
56 | *(.text) |
---|
57 | } |
---|
58 | . = seg_reset_base; |
---|
59 | seg_reset : { |
---|
60 | *(.reset) |
---|
61 | } |
---|
62 | . = seg_data_base; |
---|
63 | seg_data : { |
---|
64 | *(.rodata) |
---|
65 | . = ALIGN(4); |
---|
66 | *(.rodata.*) |
---|
67 | . = ALIGN(4); |
---|
68 | *(.data) |
---|
69 | . = ALIGN(4); |
---|
70 | *(.sdata) |
---|
71 | . = ALIGN(4); |
---|
72 | *(.bss) |
---|
73 | *(COMMON) |
---|
74 | *(.sbss) |
---|
75 | } |
---|
76 | } |
---|
77 | |
---|
Note: See
TracBrowser
for help on using the repository browser.