OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [bootloaders/] [orpmon/] [ram.ld] - Blame information for rev 463

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 140 julius
 
2 246 julius
 
3 2 marcus.erl
MEMORY
4
        {
5
        vectors : ORIGIN = 0x00000000, LENGTH = 0x00002000
6 375 julius
        /* Use all RAM */
7
        /* Put all sections into ram */
8 419 julius
 
9 246 julius
        ram     : ORIGIN = 0x00002000, LENGTH = 0x02000000 - 0x00002000
10 419 julius
 
11 375 julius
        /* Uncomment the following to work around bad pages in a flash mem */
12
        /* Put all sections except data, rodata into ram2 */
13
        /* On ORSoC dev board devices, for pages 132-134 (256Byte pages) */
14 419 julius
        /*
15 375 julius
        ram     : ORIGIN = 0x00001200, LENGTH = 0x8400 - 0x1200
16
        ram2     : ORIGIN = 0x8700, LENGTH = 0x02000000 - 0x8700
17 419 julius
        */
18 246 julius
        /* Uncomment the following to work around bad pages in a flash mem */
19 375 julius
        /* Put all sections except data, rodata into ram2 */
20
        /* On ORSoC dev board devices, for pages 180-182 (256Byte pages) */
21 246 julius
        /*
22 140 julius
        ram     : ORIGIN = 0x00001200, LENGTH = 0xB400 - 0x1200
23
        ram2     : ORIGIN = 0xb700, LENGTH = 0x02000000 - 0xb700
24 246 julius
        */
25 140 julius
        /*flash   : ORIGIN = 0xf0000000, LENGTH = 0x04000000*/
26 2 marcus.erl
        }
27
 
28 140 julius
 
29
 
30 2 marcus.erl
SECTIONS
31
{
32
        .vectors :
33
        {
34
        *(.crc)
35
        *(.vectors)
36
        } > vectors
37
 
38
        .text :
39
        {
40
        _text_begin = .;
41
        *(.text)
42
        _text_end = .;
43 419 julius
        } > ram
44
/*        } > ram2*/
45 2 marcus.erl
 
46
        .data :
47 140 julius
/*      AT ( ADDR (.text) + SIZEOF(.text) + SIZEOF(.mytext))*/
48 2 marcus.erl
        {
49
        *(.data)
50
        } > ram
51
 
52
        .rodata :
53
        {
54
        *(.rodata)
55
        *(.rodata.*)
56
        } > ram
57
 
58
        .bss :
59
        {
60 463 julius
        . = ALIGN(4);
61
        _bstart = . ;
62 2 marcus.erl
        *(.bss)
63 463 julius
        _bend =  . ;
64 419 julius
        } > ram
65
/*        } > ram2 */
66 2 marcus.erl
 
67
        .stack :
68
        {
69
        *(.stack)
70 353 julius
        _src_addr = .;
71 419 julius
        } > ram
72
/*        } > ram2 */
73 140 julius
/*
74
        .monitor :
75
        {
76
        *(.monitor)
77
        } > ram
78
*/
79 2 marcus.erl
 
80 140 julius
/*
81
        . += 0x100000;
82
 
83
// This section was in cmds/load.c, but we don't need it -jb
84
        .config :
85
        {
86
        _cfg_start = .;
87
        *(.config)
88
        _cfg_end = .;
89
        } > ram
90
*/
91
/*
92 2 marcus.erl
        . = 0xf0000100;
93
 
94
        .monitor ALIGN(0x40000) :
95
        {
96
        *(.monitor)
97
        } > flash
98
 
99
        . += 0x100000;
100
 
101
        .config ALIGN(0x40000) :
102
        {
103
        _cfg_start = .;
104
        *(.config)
105
        _cfg_end = .;
106
        } > flash
107 140 julius
*/
108 2 marcus.erl
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.