This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: who use the RAM block between 0x0 and 0xfcb8 ??
On Thu, Aug 25, 2005 at 03:50:42PM +0800, Steven_cheng wrote:
> Dear Andrew,
>
> The processor of my platform is PowerPC 8245, the following are my
> romram.ldi and romram.h.
>
> ///////////////////// romram.ldi
> MEMORY
> {
> ram : ORIGIN = 0, LENGTH = 0x10000000
> }
>
> SECTIONS
> {
> SECTIONS_BEGIN
> SECTION_vectors (ram, 0, LMA_EQ_VMA)
> SECTION_text (ram, 0x3400, LMA_EQ_VMA)
> SECTION_fini (ram, ALIGN (0x4), LMA_EQ_VMA)
> SECTION_rodata1 (ram, ALIGN (0x8), LMA_EQ_VMA)
> SECTION_rodata (ram, ALIGN (0x8), LMA_EQ_VMA)
> SECTION_fixup (ram, ALIGN (0x4), LMA_EQ_VMA)
> SECTION_gcc_except_table (ram, ALIGN (0x1), LMA_EQ_VMA)
> SECTION_data (ram, ALIGN (0x8), LMA_EQ_VMA)
> SECTION_sbss (ram, ALIGN (0x4), LMA_EQ_VMA)
> SECTION_bss (ram, ALIGN (0x10), LMA_EQ_VMA)
> CYG_LABEL_DEFN(__heap1) = ALIGN (0x8);
> SECTIONS_END
> }
>
> ///////////////////// romram.h
> #define CYGMEM_REGION_ram (0)
> #define CYGMEM_REGION_ram_SIZE (0x10000000)
> #define CYGMEM_REGION_ram_ATTR (CYGMEM_REGION_ATTR_R | CYGMEM_REGION_ATTR_W)
> #ifndef __ASSEMBLER__
> extern char CYG_LABEL_NAME (__heap1) [];
> #endif
> #define CYGMEM_SECTION_heap1 (CYG_LABEL_NAME (__heap1))
> #define CYGMEM_SECTION_heap1_SIZE (0x10000000 - (size_t) CYG_LABEL_NAME
> (__heap1))
>
>
> Questions:
> Q1 : How can I modify the files for memory address (0x0) emptying ??
> Q2 : Where can I get the detail information about the format and meaning
> of ram.h /ram.ldi / ram.mlt ?? Or document ??
I don't know if there is any documentation. I've never needed any so
i've not looked.
> Q3: As above example, where is the label " __heap1" defined ?? I can't find
> it.
CYG_LABEL_DEFN defines __heap1.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss