Mercurial > nand-ecoscentric
changeset 1837:c5816fa4e2ad
* test/fileio1.c: Start the test using main, not via a
thread. This makes is more uniform with the other fileio1 tests.
| author | asl |
|---|---|
| date | Sun, 14 Nov 2004 14:04:13 +0000 |
| parents | 9ad253729c53 |
| children | afa0c55e7d89 |
| files | packages/fs/fat/current/ChangeLog packages/fs/fat/current/tests/fileio1.c |
| diffstat | 2 files changed, 6 insertions(+), 28 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/fs/fat/current/ChangeLog +++ b/packages/fs/fat/current/ChangeLog @@ -1,3 +1,8 @@ +2004-11-14 Jani Monoses <jani@iv.ro> + + * test/fileio1.c: Start the test using main, not via a + thread. This makes is more uniform with the other fileio1 tests. + 2004-11-11 David Brennan <eCos@brennanhome.com> * src/fatfs.c: fixed typos in TRACE statements
--- a/packages/fs/fat/current/tests/fileio1.c +++ b/packages/fs/fat/current/tests/fileio1.c @@ -58,11 +58,9 @@ //========================================================================== #include <pkgconf/hal.h> -#include <pkgconf/kernel.h> #include <pkgconf/io_fileio.h> #include <pkgconf/fs_fat.h> -#include <cyg/kernel/ktypes.h> // base kernel types #include <cyg/infra/cyg_trac.h> // tracing macros #include <cyg/infra/cyg_ass.h> // assertion macros @@ -429,7 +427,7 @@ void checkcwd( const char *cwd ) //========================================================================== // main -void fileio1_main( CYG_ADDRESS id ) +int main( int argc, char **argv ) { int err; int existingdirents=-1; @@ -744,29 +742,4 @@ void fileio1_main( CYG_ADDRESS id ) } // ------------------------------------------------------------------------- - -#include <cyg/kernel/kapi.h> - -static char stack[CYGNUM_HAL_STACK_SIZE_TYPICAL]; -static cyg_handle_t thread_handle; -static cyg_thread thread; - -externC void -cyg_start( void ) -{ - cyg_thread_create(3, // Priority - just a number - fileio1_main, // entry - 0, // index - 0, // no name - &stack[0], // Stack - sizeof(stack), // Size - &thread_handle, // Handle - &thread // Thread data structure - ); - cyg_thread_resume(thread_handle); - - cyg_scheduler_start(); -} - -// ------------------------------------------------------------------------- // EOF fileio1.c
