Ejemplo n.º 1
0
void board_initialize(void)
{
  /* Perform NSH initialization here instead of from the NSH.  This
   * alternative NSH initialization is necessary when NSH is ran in user-space
   * but the initialization function must run in kernel space.
   */

#if defined(CONFIG_NSH_LIBRARY) && !defined(CONFIG_NSH_ARCHINIT)
  (void)nsh_archinitialize();
#endif
}
Ejemplo n.º 2
0
void nsh_initialize(void)
{
  /* Mount the /etc filesystem */

  (void)nsh_romfsetc();

  /* Perform architecture-specific initialization (if available) */

  (void)nsh_archinitialize();

  /* Bring up the network */

  (void)nsh_netinit();
}
Ejemplo n.º 3
0
static int board_initthread(int argc, char *argv[])
{
	int ret;

	/* Perform NSH initialization here instead of from the NSH.  This
	 * alternative NSH initialization is necessary when NSH is ran in user-space
	 * but the initialization function must run in kernel space.
	 */

#if defined(CONFIG_NSH_LIBRARY) && !defined(CONFIG_NSH_ARCHINIT)
	ret = nsh_archinitialize();
	if (ret < 0)
	{
		gdbg("ERROR: nsh_archinitialize failed: %d\n", ret);
	}
#endif
	return EXIT_SUCCESS;
}