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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [arch/] [i960/] [init_cyvh.ld] - Blame information for rev 1625

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

Line No. Rev Author Line
1 1625 jcastillo
#include 
2
/*
3
 *   This is the linker directive file to link an application to run
4
 *   under mon960 on the CY board with a Cx, Jx, or Hx processor.
5
 *   Programs linked with this file are downloaded to DRAM after the
6
 *   data area used by mon960.
7
 *   malloc() uses the symbols _heap_base and _heap_end to manage the heap.
8
 *   _heap_base is located at the end of program memory (.text + .data +.bss).
9
 *   _heap_size is defined as 0x20000.
10
 *   The C runtime stack starts at _heap_end and grows up.
11
 *   There must be enough room after the program memory in the dram for
12
 *   the program's heap and stack.
13
 */
14
 
15
 
16
MEMORY
17
{
18
#ifdef CONFIG_CYVH_4MB
19
    data:       o=0xA3C08000,l=0x7f8000  /* for 4 MB dram on eval board */
20
#endif
21
#ifdef CONFIG_CYVH_8MB
22
    data:       o=0xA3808000,l=0xff8000  /* for 8 MB dram on eval board */
23
#endif
24
#ifdef CONFIG_CYVH_16MB
25
    data:       o=0xA3008000,l=0x1ff8000 /* for 16 MB dram on eval board */
26
#endif
27
#ifdef CONFIG_CYVH_32MB
28
    data:       o=0xA2008000,l=0x3ff8000 /* for 32 MB dram on eval board */
29
#endif
30
}
31
 
32
SECTIONS
33
{
34
  .text :
35
        {
36
          *(.text)
37
          .=ALIGN(0x10);
38
        } > data
39
        .data :
40
        {
41
        } > data
42
        .bss :
43
        {
44
        } > data
45
}
46
 

powered by: WebSVN 2.1.0

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