mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
Patch from David Fiddes <D.J.Fiddes@hw.ac.uk>:
Here's a small patch I forgot about from earlier in the week that removes
the hack fix Geoffroy had to use to get his BSP to work properly.
The termios osend() fix took care of this.
This commit is contained in:
@@ -523,25 +523,6 @@ SetAttributes (int minor, const struct termios *t)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
Name: console_atexit
|
||||
Input parameters: -
|
||||
Output parameters: -
|
||||
Description: called at program termination.
|
||||
TO DO: add a TERMIOS routine to wait for all the
|
||||
characters to be transmitted
|
||||
*****************************************************/
|
||||
void console_atexit(void)
|
||||
{
|
||||
if ((CHANNEL_ENABLED_A && USE_INTERRUPTS_A) || (CHANNEL_ENABLED_B && USE_INTERRUPTS_B))
|
||||
{
|
||||
/* should do a drain output but the function is static
|
||||
and we do not have a table holding all the file descriptors */
|
||||
/* just loop, I don't mind not to shutdown the executive */
|
||||
while (1) continue;
|
||||
}
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
Name: console_reserve_resources
|
||||
Input parameters: -
|
||||
@@ -573,11 +554,6 @@ rtems_device_driver console_initialize(
|
||||
rtems_status_code status;
|
||||
int i;
|
||||
|
||||
/*
|
||||
* Set up console driver needs for program termination
|
||||
*/
|
||||
atexit(console_atexit);
|
||||
|
||||
/*
|
||||
* Set up TERMIOS
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user