This is the mail archive of the ecos-patches@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]

Re: fileio w/o kernel


On Wed, Nov 17, 2004 at 04:37:38PM +0200, Jani Monoses wrote:
>  >>Was there a reason for using a thread in fat/tests/fileio instead of
> >>regular main startup?
> >
> >
> >Not that i can see. It works OK your way, which is the same as for
> >romfs, ramfs & jffs2. However, main() is only called by the kernel. If
> >you don't have a kernel you need to use cyg_start() or
> >cyg_user_start(). Since you are trying to make this work without the
> >kernel it makes sense to change this to cyg_start() not main. You
> >might want to change the tests in fat, ram, rom & jffs2 as well.
> 
> Actually, libc_startup works with nonkernel config too, it just add a little
> overhead.

OK. I did not have that in my test. I used the minimal template which
is what i expect most people will use as a basis for a system without
a kernel.

> 
> >For socket its best to make use of CYG_TEST_NA().
> >
> 
> Attached, and will commit if acked.

Its normal to pass the NA_MSG to CYG_TEST_NA() so we can see what is
missing.

        Andrew


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