This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: file system initialize
- To: james chen <james_ch1 at sina dot com>
- Subject: Re: [ECOS] file system initialize
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Tue, 17 Jul 2001 15:40:39 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <000701b27ac1$191666c0$c408aa0a@inc.inventec>
james chen wrote:
>
> Hi,
> I use MTAB_ENTRY to static mount a fs. when I debug my fs, I found
> that fs->mount is called before dlmalloc initialize. so malloc called
> failure in mount. may be the init priority of
> fileio_initializer(io\fileio\src\misc.cxx) must be changed, can anyone tell
> me how to change it!
>
> static Cyg_Fileio_Init_Class fileio_initializer
> CYGBLD_ATTRIB_INIT_PRI(CYG_INIT_IO); ???
fileio _should_ be initialized before dlmalloc. dlmalloc is initialized
with priority "CYGBLD_ATTRIB_INIT_BEFORE(CYG_INIT_LIBC)", which is (from
infra/current/include/cyg_type.h) 49900.
CYG_INIT_IO is 49000.
Did you compile all of eCos with -finit-priority? Perhaps your tools don't
support it properly. What version of gcc/binutils you got?
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions http://www.redhat-techworld.com/