This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: who use the RAM block between 0x0 and 0xfcb8 ??


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 ??
 Q3: As above example, where is the label " __heap1" defined ?? I can't find
it.

Thank you ~~

Steven Cheng



----- Original Message ----- 
From: "Andrew Lunn" <andrew@lunn.ch>
To: "Steven_cheng" <05071@alphanetworks.com>
Cc: "eCos Discussion" <ecos-discuss@ecos.sourceware.org>
Sent: Thursday, August 25, 2005 3:22 PM
Subject: Re: [ECOS] who use the RAM block between 0x0 and 0xfcb8 ??


> On Thu, Aug 25, 2005 at 11:34:09AM +0800, Steven_cheng wrote:
> >
> > Dear All,
> >
> > Thank you for your reply! But I have a question.
> >
> >     Can I move the RedBoot workspace to other address, because I have
> > an application located at 0x0.  I hope to empty the address 0x0 in the
ROM /
> > ROMRAM modes
> >
> > How can I do for it ??
>
> You need to modify the memory map. Take a look at the *ROMRAM.ldi and
> *ROMRAM.h for your target. These two files controls what goes where in
> memory.
>
> What processor is this? For ARM you however cannot free up the first
> 20 bytes. These are the interrupt vectors which RedBoot want to keep
> control of until your application gets to run.
>
>         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
>


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]