a strange problem with rtems_io_register_name

Joel Sherrill joel.sherrill at OARcorp.com
Fri Aug 29 13:00:17 UTC 2003


Stan wrote:
> ----- Original Message ----- 
> From: "Stan" <zylog at club-internet.fr>
> To: "Joel Sherrill" <joel.sherrill at OARcorp.com>
> Sent: Friday, August 29, 2003 2:38 PM
> Subject: Re: a strange problem with rtems_io_register_name
> 
> 
> 
>>----- Original Message -----
>>From: "Joel Sherrill" <joel.sherrill at OARcorp.com>
>>
>>>Let's go back to basics then.
>>>
>>>What test are you running and have you modified it?
>>>
>>>
> 
>  
>  In console.c, I have removed rtems_fatal_error_occurred called by
>  rtems_io_register
>  because io_register_name return RTEMS_TOOMANY.
>  In fact, mknod fail with errno = ENOENT.
>  
>  
>  In bspstart.c Cpu_table.postdriver_hook has been modified ( = NULL) for to
>  avoid
>  tests console ( stdout ).
>  
>  In test.c ("hello word") , I have added these lines in main task :
>  
>  ...
>      status = rtems_io_register_name ("/dev/console", 0,0);
>          if(status != RTEMS_SUCCESSFUL) rtems_fatal_error_occured(status);

/dev/console is already registered by the console device driver.  The
error is indicating there is already a /dev/console.  I am looking at
line 230 of console/console.c.

>      status = rtems_io_register_name ("/dev/aux", 0,1);
>          if(status != RTEMS_SUCCESSFUL) rtems_fatal_error_occured(status);
>  ...
>  
>  it return SUCCESSFUL.

/dev/aux was never registered before.

>  I hope to become clearer ;)
>  
>  Stan
>  


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
Support Available                (256) 722-9985




More information about the users mailing list