forked from Imagelibrary/rtems
2011-11-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
* console_private.h: Removed Console_Port_Minor declaration. * console.c: Define console_initialized as static.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2011-11-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
|
||||||
|
|
||||||
|
* console_private.h: Removed Console_Port_Minor declaration.
|
||||||
|
* console.c: Define console_initialized as static.
|
||||||
|
|
||||||
2011-11-06 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2011-11-06 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
PR 1945/cpukit
|
PR 1945/cpukit
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ unsigned long Console_Port_Count = 0;
|
|||||||
console_tbl **Console_Port_Tbl = NULL;
|
console_tbl **Console_Port_Tbl = NULL;
|
||||||
console_data *Console_Port_Data = NULL;
|
console_data *Console_Port_Data = NULL;
|
||||||
rtems_device_minor_number Console_Port_Minor = 0;
|
rtems_device_minor_number Console_Port_Minor = 0;
|
||||||
bool console_initialized = false;
|
static bool console_initialized = false;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* console_initialize_pointers
|
* console_initialize_pointers
|
||||||
@@ -76,7 +76,7 @@ void console_register_devices(
|
|||||||
* console_initialize has been invoked so it is now too late to
|
* console_initialize has been invoked so it is now too late to
|
||||||
* register devices.
|
* register devices.
|
||||||
*/
|
*/
|
||||||
if ( console_initialized == true ) {
|
if ( console_initialized ) {
|
||||||
printk( "Attempt to register console devices after driver initialized\n" );
|
printk( "Attempt to register console devices after driver initialized\n" );
|
||||||
rtems_fatal_error_occurred( 0xdead0001 );
|
rtems_fatal_error_occurred( 0xdead0001 );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,6 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern rtems_device_minor_number Console_Port_Minor;
|
|
||||||
extern rtems_device_minor_number BSPPrintkPort;
|
extern rtems_device_minor_number BSPPrintkPort;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user