OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libc/] [termiosreserveresources.c] - Rev 173

Compare with Previous | Blame | View Log

/*
 *  Reserve enough resources to open every physical device once.
 *
 * $Id: termiosreserveresources.c,v 1.2 2001-09-27 12:01:15 chris Exp $
 */
 
#include <rtems.h>
 
#if 0
static int first_time;   /* assumed to be zeroed by BSS initialization */
#endif
 
void rtems_termios_reserve_resources (
  rtems_configuration_table *configuration,
  rtems_unsigned32           number_of_devices
)
{
#if 0
        rtems_api_configuration_table *rtems_config;
 
 
        if (!configuration)
                rtems_fatal_error_occurred (0xFFF0F001);
        rtems_config = configuration->RTEMS_api_configuration;
        if (!rtems_config)
                rtems_fatal_error_occurred (0xFFF0F002);
        if (!first_time)
                rtems_config->maximum_semaphores += 1;
        first_time = 1;
        rtems_config->maximum_semaphores += (4 * number_of_devices);
#endif
}
 
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.