Heavy SysInit Dependency

Sebastian Huber sebastian.huber at embedded-brains.de
Wed May 19 14:07:39 UTC 2021


On 19/05/2021 15:25, Joel Sherrill wrote:
> 
> Yeah. But if you use any method with errno, you get all this. I know the
> reent structure has to be initialized but why did it trigger opening
> /dev/console? The console device wasn't configured. Can the post driver
> hook dependency be cleaved from this chain?
> 
> https://git.rtems.org/rtems/tree/cpukit/libcsupport/src/libio_init.c#n69 
> <https://git.rtems.org/rtems/tree/cpukit/libcsupport/src/libio_init.c#n69>
> 
> I think that dependency is only needed if you configure the console
> device driver. Shouldn't the sysinit for the post driver hook be part of
> configuring the console or simple console?
> 
> https://git.rtems.org/rtems/tree/cpukit/include/rtems/confdefs/console.h 
> <https://git.rtems.org/rtems/tree/cpukit/include/rtems/confdefs/console.h>
> https://git.rtems.org/rtems/tree/cpukit/include/rtems/confdefs/iodrivers.h 
> <https://git.rtems.org/rtems/tree/cpukit/include/rtems/confdefs/iodrivers.h>

Initializing /dev/console via the console drivers is an option. I guess 
you still get the file system support pulled in via the file descriptors.

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/


More information about the devel mailing list