4.104.114.84.95
Last change
on this file since 2e7ed911 was
9c49db4,
checked in by Joel Sherrill <joel.sherrill@…>, on 01/08/01 at 18:26:44
|
2001-01-08 Ralf Corsepius <corsepiu@…>
- configure.in: Add libc/config.h
- libc/Makefile.am: Add INCLUDES += -I. to pickup config.h
- libc/.cvsignore: Add config.h and stamp-h
- libc/*.c: Add config.h support.
|
-
Property mode set to
100644
|
File size:
848 bytes
|
Line | |
---|
1 | /* |
---|
2 | * Reserve enough resources to open every physical device once. |
---|
3 | * |
---|
4 | * $Id$ |
---|
5 | */ |
---|
6 | |
---|
7 | #if HAVE_CONFIG_H |
---|
8 | #include "config.h" |
---|
9 | #endif |
---|
10 | |
---|
11 | #include <rtems.h> |
---|
12 | |
---|
13 | #if 0 |
---|
14 | static int first_time; /* assumed to be zeroed by BSS initialization */ |
---|
15 | #endif |
---|
16 | |
---|
17 | void rtems_termios_reserve_resources ( |
---|
18 | rtems_configuration_table *configuration, |
---|
19 | rtems_unsigned32 number_of_devices |
---|
20 | ) |
---|
21 | { |
---|
22 | #if 0 |
---|
23 | rtems_api_configuration_table *rtems_config; |
---|
24 | |
---|
25 | |
---|
26 | if (!configuration) |
---|
27 | rtems_fatal_error_occurred (0xFFF0F001); |
---|
28 | rtems_config = configuration->RTEMS_api_configuration; |
---|
29 | if (!rtems_config) |
---|
30 | rtems_fatal_error_occurred (0xFFF0F002); |
---|
31 | if (!first_time) |
---|
32 | rtems_config->maximum_semaphores += 1; |
---|
33 | first_time = 1; |
---|
34 | rtems_config->maximum_semaphores += (4 * number_of_devices); |
---|
35 | #endif |
---|
36 | } |
---|
37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.