This is the mail archive of the ecos-discuss@sources.redhat.com 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]

.mlt and related files question


Hi All,

Can anybody tell me where I can find the description of .mlt file? And how
does it relates to mlt_XXX_XXX_rom(ram).h? Is that possible to avoid manual
editing of .h file and edit only .mlt?

I have the following in my mlt_arm_lubbock_rom.h:
==============
// eCos memory layout - Tue Sep 05 18:46:49 2000

// This is a generated file - do not edit

#ifndef __ASSEMBLER__
#include <cyg/infra/cyg_type.h>
#include <stddef.h>

#endif
#define CYGMEM_REGION_ram (0xA0000000)
#define CYGMEM_REGION_ram_SIZE (0x4000000)
#define CYGMEM_REGION_ram_ATTR (CYGMEM_REGION_ATTR_R | CYGMEM_REGION_ATTR_W)
#define CYGMEM_REGION_rom (0x00000000)
#define CYGMEM_REGION_rom_SIZE (0x800000)
#define CYGMEM_REGION_rom_ATTR (CYGMEM_REGION_ATTR_R)
#ifndef __ASSEMBLER__
extern char CYG_LABEL_NAME (__heap1) [];
#endif
#define CYGMEM_SECTION_heap1 (CYG_LABEL_NAME (__heap1))
#define CYGMEM_SECTION_heap1_SIZE (0x1f00000 - (size_t) CYG_LABEL_NAME
(__heap1))
#ifndef __ASSEMBLER__
// extern char CYG_LABEL_NAME (__pci_window) [];
#endif
===============

it doesn't work because CYGMEM_SECTION_heap1_SIZE has to be calculated using
0x4000000 for this board instead of 0x1f00000 because heap has to be
allocated in RAM. So that when I'm redefining this it works OK. At the same
time comment on top says "do not edit".

The question is: who generates this file and what is the source data for
generation? I presume source is .mlt file. So, right way would be to correct
.mlt and then regenerate .h and .ldi instead of manual editing. Could you
please tell me how to do this and where description of .mlt file format
could be found?

Many thanks in advance,
Dmitry.




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