Revert "nshlib: Move BOARDIOC_FINALINIT into nsh_initscript"
This reverts commit ac5632fc504f4e66b61131047326e78c16210d5c.
This commit is contained in:
parent
650b58d6b2
commit
b1b45de3db
@ -294,6 +294,12 @@ int nsh_consolemain(int argc, FAR char *argv[])
|
|||||||
netinit_bringup();
|
netinit_bringup();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_NSH_ARCHINIT) && defined(CONFIG_BOARDCTL_FINALINIT)
|
||||||
|
/* Perform architecture-specific final-initialization (if configured) */
|
||||||
|
|
||||||
|
boardctl(BOARDIOC_FINALINIT, 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* First map stderr and stdout to alternative devices */
|
/* First map stderr and stdout to alternative devices */
|
||||||
|
|
||||||
ret = nsh_clone_console(pstate);
|
ret = nsh_clone_console(pstate);
|
||||||
|
@ -104,6 +104,12 @@ int nsh_consolemain(int argc, FAR char *argv[])
|
|||||||
netinit_bringup();
|
netinit_bringup();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_NSH_ARCHINIT) && defined(CONFIG_BOARDCTL_FINALINIT)
|
||||||
|
/* Perform architecture-specific final-initialization (if configured) */
|
||||||
|
|
||||||
|
boardctl(BOARDIOC_FINALINIT, 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Execute the session */
|
/* Execute the session */
|
||||||
|
|
||||||
ret = nsh_session(pstate, true);
|
ret = nsh_session(pstate, true);
|
||||||
|
@ -196,12 +196,6 @@ int nsh_initscript(FAR struct nsh_vtbl_s *vtbl)
|
|||||||
|
|
||||||
vtbl->np.np_flags = NSH_NP_SET_OPTIONS_INIT;
|
vtbl->np.np_flags = NSH_NP_SET_OPTIONS_INIT;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_NSH_ARCHINIT) && defined(CONFIG_BOARDCTL_FINALINIT)
|
|
||||||
/* Perform architecture-specific final-initialization (if configured) */
|
|
||||||
|
|
||||||
boardctl(BOARDIOC_FINALINIT, 0);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -326,6 +326,12 @@ int nsh_consolemain(int argc, FAR char *argv[])
|
|||||||
netinit_bringup();
|
netinit_bringup();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_NSH_ARCHINIT) && defined(CONFIG_BOARDCTL_FINALINIT)
|
||||||
|
/* Perform architecture-specific final-initialization (if configured) */
|
||||||
|
|
||||||
|
boardctl(BOARDIOC_FINALINIT, 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Now loop, executing creating a session for each USB connection */
|
/* Now loop, executing creating a session for each USB connection */
|
||||||
|
|
||||||
for (; ; )
|
for (; ; )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user