# HG changeset patch # User asl # Date 1100441053 0 # Node ID c5816fa4e2adb98485a6ed0184baad50658492ca # Parent 9ad253729c5357f8b25190d088cb473b3f4198b2 * test/fileio1.c: Start the test using main, not via a thread. This makes is more uniform with the other fileio1 tests. diff --git a/packages/fs/fat/current/ChangeLog b/packages/fs/fat/current/ChangeLog --- a/packages/fs/fat/current/ChangeLog +++ b/packages/fs/fat/current/ChangeLog @@ -1,3 +1,8 @@ +2004-11-14 Jani Monoses + + * 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 * src/fatfs.c: fixed typos in TRACE statements diff --git a/packages/fs/fat/current/tests/fileio1.c b/packages/fs/fat/current/tests/fileio1.c --- a/packages/fs/fat/current/tests/fileio1.c +++ b/packages/fs/fat/current/tests/fileio1.c @@ -58,11 +58,9 @@ //========================================================================== #include -#include #include #include -#include // base kernel types #include // tracing macros #include // 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 - -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