annotate chipsetsw/system/template/gsm_ds_pirelli_flash.template @ 32:f6eaed5c5322

crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
author Space Falcon <falcon@ivan.Harhan.ORG>
date Wed, 09 Sep 2015 03:56:15 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
32
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
1 /*
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
2 * Integrated Protocol Stack Linker command file (all components)
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
3 *
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
4 * Target : ARM
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
5 *
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
6 * Copyright (c) Texas Instruments 2002, Condat 2002
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
7 *
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
8 * This version of the linker script template has been concocted
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
9 * by Spacefalcon the Outlaw based on previous hacks.
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
10 */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
11
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
12 -c /* Autoinitialize variables at runtime */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
13
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
14 /*********************************/
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
15 /* SPECIFY THE SYSTEM MEMORY MAP */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
16 /*********************************/
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
17
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
18 MEMORY
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
19 {
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
20 /* CS0: Flash 4 Mbytes ****************************************************/
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
21 /* Interrupt Vectors Table */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
22 I_MEM (RXI) : org = 0x00000000 len = 0x00000100
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
23
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
24 /* Boot Sector */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
25 B_MEM (RXI) : org = 0x00000100 len = 0x00001f00
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
26
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
27 /* Magic Word for Calypso Boot ROM */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
28 MWC_MEM (RXI) : org = 0x00002000 len = 0x00000004 fill = 0x0000001
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
29
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
30 /* Program Memory */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
31 P_MEM1 (RXI) : org = 0x00004000 len = 0x00000700
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
32 P_MEM2 (RXI) : org = 0x00004700 len = 0x00000004
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
33 P_MEM3 (RXI) : org = 0x00004704 len = 0x0037b8fc
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
34
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
35 /* FFS Area */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
36 FFS_MEM (RX) : org = 0x02000000 len = 0x00800000
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
37 /**************************************************************************/
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
38
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
39 /* CS1: External SRAM 1 Mbytes ********************************************/
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
40 /* Data Memory */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
41
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
42 /*
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
43 * Huge XRAM on the Pirelli: present it as two banks of 4 MiB each
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
44 */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
45
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
46 D_MEM1 (RW) : org = 0x01000000 len = 0x00400000
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
47 D_MEM2 (RW) : org = 0x01400000 len = 0x00400000
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
48 /**************************************************************************/
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
49
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
50 /* CS6: Calypso Internal SRAM 512 kbytes **********************************/
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
51 /* Code & Variables Memory */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
52 S_MEM (RXW) : org = 0x00800000 len = 0x00080000
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
53 /**************************************************************************/
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
54 }
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
55
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
56 /***********************************************/
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
57 /* SPECIFY THE SECTIONS ALLOCATION INTO MEMORY */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
58 /***********************************************/
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
59
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
60 /*
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
61 * Since the bootloader directly calls the INT_Initialize() routine located
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
62 * in int.s, this int.s code must always be mapped at the same address
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
63 * (usually in the second flash sector). Its length is about 0x500 bytes.
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
64 * Then comes the code that need to be loaded into the internal RAM.
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
65 */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
66
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
67 SECTIONS
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
68 {
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
69 .intvecs : {} > I_MEM /* Interrupt Vectors Table */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
70 .monitor : > B_MEM /* Monitor Constants & Code */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
71 {
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
72 $(CONST_BOOT_LIB)
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
73 }
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
74
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
75 .inttext : {} > P_MEM1 /* int.s Code */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
76
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
77 .bss_dar : > D_MEM1 /* DAR SWE Variables */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
78 {
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
79 $(BSS_DAR_LIB)
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
80 }
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
81
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
82 /*
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
83 * The .bss section should not be split to ensure it is initialized to 0
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
84 * each time the SW is reset. So the whole .bss is mapped either in D_MEM1
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
85 * or in D_MEM2.
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
86 *
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
87 * Falcon's note for K5A3281: see the comments above where the memory
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
88 * regions are defined.
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
89 */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
90
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
91 .bss : > D_MEM1 | D_MEM2 /* Global & Static Variables */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
92 {
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
93 $(BSS_BOOT_LIB)
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
94 }
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
95
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
96 /*
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
97 * All .bss sections, which must be mapped in internal RAM must be
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
98 * grouped in order to initialized the corresponding memory to 0.
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
99 * This initialization is done in int.s file before calling the Nucleus
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
100 * routine.
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
101 */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
102
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
103 GROUP
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
104 {
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
105 S_D_Mem /* Label of start address of .bss section in Int. RAM */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
106 .DintMem
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
107 {
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
108
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
109 /*
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
110 * .bss sections of the application
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
111 */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
112
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
113 $(BSS_LIBS)
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
114
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
115 }
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
116
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
117 API_HISR_stack : {}
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
118
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
119 E_D_Mem /* Label of end address of .bss section in Int. RAM */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
120 } > S_MEM
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
121
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
122 /*
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
123 * .text and .const sections which must be mapped in internal RAM.
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
124 */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
125
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
126 .ldfl : {} > P_MEM2 /* Used to know the start load address */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
127 GROUP load = P_MEM3, run = S_MEM
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
128 {
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
129 S_P_Mem /* Label of start address of .text & .const sections in Int. RAM */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
130 .PIntMem
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
131 {
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
132 /*
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
133 * .text and .const sections of the application.
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
134 *
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
135 * The .veneer sections correspond exactly to .text:v&n sections
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
136 * implementing the veneer functions. The .text:v$n -> .veneer
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
137 * translation is performed by PTOOL software when PTOOL_OPTIONS
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
138 * environement variable is set to veneer_section.
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
139 */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
140
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
141 $(CONST_LIBS)
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
142
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
143 }
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
144 E_P_Mem /* Label of end address of .text and .const sections in Int. RAM */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
145 }
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
146
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
147 /*
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
148 * The rest of the code is mapped in flash, however the trampolines
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
149 * load address should be consistent with .text.
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
150 */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
151 COMMENT2START
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
152 `trampolines load = P_MEM3, run = S_MEM
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
153 COMMENT2END
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
154
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
155 .text : {} > P_MEM3 /* Code */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
156
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
157 /*
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
158 * The rest of the constants is mapped in flash.
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
159 * The .cinit section should not be split.
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
160 */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
161
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
162 .cinit : {} > P_MEM3 /* Initialization Tables */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
163 .const : {} > P_MEM3 /* Constant Data */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
164 KadaAPI : {} > P_MEM3 /* ROMized CLDC */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
165
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
166 .javastack: {} >> D_MEM1 | D_MEM2 /* Java stack */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
167
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
168 .stackandheap : > D_MEM1 /* System Stacks, etc... */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
169 {
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
170 /* Leave 20 32bit words for register pushes. */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
171 . = align(8);
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
172 . += 20 * 4;
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
173
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
174 /* Stack for abort and/or undefined modes. */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
175 exception_stack = .;
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
176
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
177 /* Leave 38 32bit words for state saving on exceptions. */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
178 _xdump_buffer = .;
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
179 . += 38 * 4;
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
180 . = align(8);
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
181
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
182 /* Beginning of stacks and heap area - 2.75 kbytes (int.s) */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
183 stack_segment = .;
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
184 . += 0xB00;
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
185 }
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
186
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
187 .data : {} > D_MEM1 /* Initialized Data */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
188 .sysmem : {} > D_MEM1 /* Dynamic Memory Allocation Area */
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
189
f6eaed5c5322 crazy-supersize RVT pool - we were still getting some lost msgs on the GTA02
Space Falcon <falcon@ivan.Harhan.ORG>
parents:
diff changeset
190 }