[Bug 1917] dynamic tables for libchip serial drivers

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Tue Sep 27 13:12:28 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1917

--- Comment #3 from Sebastian Huber <sebastian.huber at embedded-brains.de> 2011-09-27 08:12:27 CDT ---
Yes, you are right, the Termios introduced this minor number madness. So lets
keep it.

What about a NULL-pointer check?

+  Console_Port_Count = Console_Configuration_Count;
+  Console_Port_Tbl   = malloc( Console_Port_Count * sizeof( console_tbl * ) );
+
+  for (i=0 ; i < Console_Port_Count ; i++)
+    Console_Port_Tbl[i] = &Console_Configuration_Ports[i];
+}

Why do we call console_initialize_pointers() twice in console_initialize()?

It would be better to return a status code in console_register_devices()
instead of the fatal errors.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list