source: rtems/c/src/lib/libbsp/arm/lpc32xx/startup/linkcmds.lpc32xx_mzx_stage_1 @ 3acc619

4.115
Last change on this file since 3acc619 was 3acc619, checked in by Sebastian Huber <sebastian.huber@…>, on Dec 15, 2014 at 6:40:04 AM

bsp/lpc32xx: Fix memory map

Fixes bug introduced with f0c564c5ae36da20b1543ae9db9e8fe9644a81c8.

close #2218

  • Property mode set to 100644
File size: 2.2 KB
Line 
1/**
2 * @file
3 *
4 * @ingroup lpc32xx_linker_mzx_stage_1
5 *
6 * @brief Memory map.
7 */
8
9/**
10 * @defgroup lpc32xx_linker_mzx_stage_1 MZX Stage-1 Program Memory Map
11 *
12 * @ingroup bsp_linker
13 *
14 * @brief MZX stage-1 program memory map.
15 *
16 * <table>
17 *   <tr><th>Region Name</th><th>Region Begin</th><th>Region Size</th></tr>
18 *   <tr><td>RAM_INT</td><td>0x08000000</td><td>232k</td></tr>
19 *   <tr><td>RAM_MMU</td><td>0x0803a000</td><td>16k</td></tr>
20 *   <tr><td>RAM_VEC</td><td>0x0803d000</td><td>8k</td></tr>
21 * </table>
22 *
23 * <table>
24 *   <tr><th>Section Name</th><th>Section Runtime Region</th><th>Section Load Region</th></tr>
25 *   <tr><td>.start</td><td>RAM_INT</td><td></td></tr>
26 *   <tr><td>.vector</td><td>RAM_INT</td><td></td></tr>
27 *   <tr><td>.text</td><td>RAM_INT</td><td>RAM_INT</td></tr>
28 *   <tr><td>.rodata</td><td>RAM_INT</td><td>RAM_INT</td></tr>
29 *   <tr><td>.data</td><td>RAM_INT</td><td>RAM_INT</td></tr>
30 *   <tr><td>.fast</td><td>RAM_INT</td><td>RAM_INT</td></tr>
31 *   <tr><td>.bss</td><td>RAM_INT</td><td></td></tr>
32 *   <tr><td>.work</td><td>RAM_INT</td><td></td></tr>
33 *   <tr><td>.stack</td><td>RAM_INT</td><td></td></tr>
34 * </table>
35 */
36
37MEMORY {
38        RAM_INT : ORIGIN = 0x08000000, LENGTH = 232k
39        RAM_VEC : ORIGIN = 0x0803a000, LENGTH = 8k
40        RAM_MMU : ORIGIN = 0x0803c000, LENGTH = 16k
41        RAM_SCRATCH : ORIGIN = 0x80004000, LENGTH = 4k /* SDRAM on DYCS0 */
42}
43
44REGION_ALIAS ("REGION_START", RAM_INT);
45REGION_ALIAS ("REGION_VECTOR", RAM_VEC);
46REGION_ALIAS ("REGION_TEXT", RAM_INT);
47REGION_ALIAS ("REGION_TEXT_LOAD", RAM_INT);
48REGION_ALIAS ("REGION_RODATA", RAM_INT);
49REGION_ALIAS ("REGION_RODATA_LOAD", RAM_INT);
50REGION_ALIAS ("REGION_DATA", RAM_INT);
51REGION_ALIAS ("REGION_DATA_LOAD", RAM_INT);
52REGION_ALIAS ("REGION_FAST_TEXT", RAM_INT);
53REGION_ALIAS ("REGION_FAST_TEXT_LOAD", RAM_INT);
54REGION_ALIAS ("REGION_FAST_DATA", RAM_INT);
55REGION_ALIAS ("REGION_FAST_DATA_LOAD", RAM_INT);
56REGION_ALIAS ("REGION_BSS", RAM_INT);
57REGION_ALIAS ("REGION_WORK", RAM_INT);
58REGION_ALIAS ("REGION_STACK", RAM_INT);
59REGION_ALIAS ("REGION_NOCACHE", RAM_INT);
60REGION_ALIAS ("REGION_NOCACHE_LOAD", RAM_INT);
61
62lpc32xx_scratch_area = ORIGIN (RAM_SCRATCH);
63
64bsp_stack_svc_size = DEFINED (bsp_stack_svc_size) ? bsp_stack_svc_size : 7168;
65
66bsp_vector_table_in_start_section = 1;
67
68INCLUDE linkcmds.lpc32xx
Note: See TracBrowser for help on using the repository browser.