fileio w/o kernel

Jani Monoses jani@iv.ro
Wed Nov 17 14:37:00 GMT 2004


  >>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.

> For socket its best to make use of CYG_TEST_NA().
> 

Attached, and will commit if acked.

Jani
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ,l.diff
URL: <http://sourceware.org/pipermail/ecos-patches/attachments/20041117/88f1bbfd/attachment.ksh>


More information about the Ecos-patches mailing list