2009-05-17 Joel Sherrill <joel.sherrill@oarcorp.com>

* rtmonuse/init.c: Do not use Task_name array before initialized.
This commit is contained in:
Joel Sherrill
2009-05-17 17:22:21 +00:00
parent ea6dbd0e1c
commit 5b469b7387
2 changed files with 8 additions and 2 deletions

View File

@@ -38,8 +38,10 @@ rtems_task Init(
period = rtems_build_name( 'I', 'G', 'N', 'R' );
status = rtems_rate_monotonic_create( period, &rmid );
directive_failed( status, "rtems_rate_monotonic_create" );
put_name( Task_name[ argument ], FALSE );
printf( "- rtems_rate_monotonic_create id = 0x%08x (stays inactive)\n", rmid );
printf(
"INIT - rtems_rate_monotonic_create id = 0x%08x (stays inactive)\n",
rmid
);
Task_name[ 1 ] = rtems_build_name( 'T', 'A', '1', ' ' );