#include
|
#include
|
/*
|
/*
|
* This is the linker directive file to link an application to run
|
* This is the linker directive file to link an application to run
|
* under mon960 on the CY board with a Cx, Jx, or Hx processor.
|
* under mon960 on the CY board with a Cx, Jx, or Hx processor.
|
* Programs linked with this file are downloaded to DRAM after the
|
* Programs linked with this file are downloaded to DRAM after the
|
* data area used by mon960.
|
* data area used by mon960.
|
* malloc() uses the symbols _heap_base and _heap_end to manage the heap.
|
* malloc() uses the symbols _heap_base and _heap_end to manage the heap.
|
* _heap_base is located at the end of program memory (.text + .data +.bss).
|
* _heap_base is located at the end of program memory (.text + .data +.bss).
|
* _heap_size is defined as 0x20000.
|
* _heap_size is defined as 0x20000.
|
* The C runtime stack starts at _heap_end and grows up.
|
* The C runtime stack starts at _heap_end and grows up.
|
* There must be enough room after the program memory in the dram for
|
* There must be enough room after the program memory in the dram for
|
* the program's heap and stack.
|
* the program's heap and stack.
|
*/
|
*/
|
|
|
|
|
MEMORY
|
MEMORY
|
{
|
{
|
#ifdef CONFIG_CYVH_4MB
|
#ifdef CONFIG_CYVH_4MB
|
data: o=0xA3C08000,l=0x7f8000 /* for 4 MB dram on eval board */
|
data: o=0xA3C08000,l=0x7f8000 /* for 4 MB dram on eval board */
|
#endif
|
#endif
|
#ifdef CONFIG_CYVH_8MB
|
#ifdef CONFIG_CYVH_8MB
|
data: o=0xA3808000,l=0xff8000 /* for 8 MB dram on eval board */
|
data: o=0xA3808000,l=0xff8000 /* for 8 MB dram on eval board */
|
#endif
|
#endif
|
#ifdef CONFIG_CYVH_16MB
|
#ifdef CONFIG_CYVH_16MB
|
data: o=0xA3008000,l=0x1ff8000 /* for 16 MB dram on eval board */
|
data: o=0xA3008000,l=0x1ff8000 /* for 16 MB dram on eval board */
|
#endif
|
#endif
|
#ifdef CONFIG_CYVH_32MB
|
#ifdef CONFIG_CYVH_32MB
|
data: o=0xA2008000,l=0x3ff8000 /* for 32 MB dram on eval board */
|
data: o=0xA2008000,l=0x3ff8000 /* for 32 MB dram on eval board */
|
#endif
|
#endif
|
}
|
}
|
|
|
SECTIONS
|
SECTIONS
|
{
|
{
|
.text :
|
.text :
|
{
|
{
|
*(.text)
|
*(.text)
|
.=ALIGN(0x10);
|
.=ALIGN(0x10);
|
} > data
|
} > data
|
.data :
|
.data :
|
{
|
{
|
} > data
|
} > data
|
.bss :
|
.bss :
|
{
|
{
|
} > data
|
} > data
|
}
|
}
|
|
|
|
|