comparison chipsetsw/system/template/gsm_ds_int8.template @ 0:509db1a7b7b8

initial import: leo2moko-r1
author Space Falcon <falcon@ivan.Harhan.ORG>
date Mon, 01 Jun 2015 03:24:05 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:509db1a7b7b8
1 /*
2 * Integrated Protocol Stack Linker command file (all components)
3 *
4 * Target : ARM
5 *
6 * Copyright (c) Texas Instruments 2002, Condat 2002
7 *
8 */
9
10 -c /* Autoinitialize variables at runtime */
11
12 /*********************************/
13 /* SPECIFY THE SYSTEM MEMORY MAP */
14 /*********************************/
15
16 MEMORY
17 {
18 /* CS0: Flash 8 Mbytes ****************************************************/
19 /* Interrupt Vectors Table */
20 I_MEM (RXI) : org = 0x00000000 len = 0x00000100
21
22 /* Boot Sector */
23 B_MEM (RXI) : org = 0x00000100 len = 0x00001f00
24
25 /* Magic Word for Calypso Boot ROM */
26 MWC_MEM (RXI) : org = 0x00002000 len = 0x00000004 fill = 0x0000001
27
28 /* Program Memory */
29 P_MEM1 (RXI) : org = 0x00010000 len = 0x00000700
30 P_MEM2 (RXI) : org = 0x00010700 len = 0x003ef900
31 P_MEM3 (RXI) : org = 0x00400000 len = 0x00300000
32
33 /* FFS Area */
34 FFS_MEM (RX) : org = 0x00700000 len = 0x00100000
35 /**************************************************************************/
36
37 /* CS1: External SRAM 1 Mbytes ********************************************/
38 /* Data Memory */
39 D_MEM1 (RW) : org = 0x01000000 len = 0x00100000
40 /**************************************************************************/
41
42 /* CS2: External SRAM 8 Mbytes ********************************************/
43 /* Data Memory */
44 D_MEM2 (RW) : org = 0x01800000 len = 0x00800000
45 /**************************************************************************/
46
47 /* CS6: Calypso Internal SRAM 512 kbytes **********************************/
48 /* Code & Variables Memory */
49 S_MEM (RXW) : org = 0x00800000 len = 0x00080000
50 /**************************************************************************/
51 }
52
53 /***********************************************/
54 /* SPECIFY THE SECTIONS ALLOCATION INTO MEMORY */
55 /***********************************************/
56
57 /*
58 * Since the bootloader directly calls the INT_Initialize() routine located
59 * in int.s, this int.s code must always be mapped at the same address
60 * (usually in the second flash sector). Its length is about 0x500 bytes.
61 * Then comes the code that need to be loaded into the internal RAM.
62 */
63
64 SECTIONS
65 {
66 .intvecs : {} > I_MEM /* Interrupt Vectors Table */
67 .monitor : > B_MEM /* Monitor Constants & Code */
68 {
69 $(CONST_BOOT_LIB)
70 }
71
72 .inttext : {} > P_MEM1 /* int.s Code */
73
74 .bss_dar : > S_MEM /* DAR SWE Variables */
75 {
76 $(BSS_DAR_LIB)
77 }
78
79 .bss : > D_MEM1 /* Global & Static Variables */
80 {
81 $(BSS_BOOT_LIB)
82 }
83
84 /*
85 * The rest of the code and constants is mapped in flash.
86 */
87
88 .cinit : {} > P_MEM2 /* Initialization Tables */
89 .const : {} > P_MEM2 /* Constant Data */
90 .text : {} > P_MEM2 /* Code */
91
92 .stackandheap : > S_MEM /* System Stacks, etc... */
93 {
94 /* Leave 20 32bit words for register pushes. */
95 . = align(8);
96 . += 20 * 4;
97
98 /* Stack for abort and/or undefined modes. */
99 exception_stack = .;
100
101 /* Leave 38 32bit words for state saving on exceptions. */
102 _xdump_buffer = .;
103 . += 38 * 4;
104 . = align(8);
105
106 /* Beginning of stacks and heap area - 2.75 kbytes (int.s) */
107 stack_segment = .;
108 . += 0xB00;
109 }
110
111 .data : {} > S_MEM /* Initialized Data */
112 .sysmem : {} > S_MEM /* Dynamic Memory Allocation Area */
113
114 }