ofloader: startup ofloader directly
Signed-off-by: wanggang26 <wanggang26@xiaomi.com>
This commit is contained in:
parent
b0933fe431
commit
eb815c48d7
@ -28,6 +28,7 @@
|
||||
#include <stdio.h>
|
||||
#include <mqueue.h>
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/boardctl.h>
|
||||
|
||||
#include "ofloader.h"
|
||||
|
||||
@ -317,6 +318,18 @@ int main(int argc, FAR char *argv[])
|
||||
size_t i;
|
||||
mqd_t mq;
|
||||
|
||||
#if defined(CONFIG_BOARDCTL) && !defined(CONFIG_NSH_ARCHINIT)
|
||||
/* Perform architecture-specific initialization (if configured) */
|
||||
|
||||
boardctl(BOARDIOC_INIT, 0);
|
||||
|
||||
# ifdef CONFIG_BOARDCTL_FINALINIT
|
||||
/* Perform architecture-specific final-initialization (if configured) */
|
||||
|
||||
boardctl(BOARDIOC_FINALINIT, 0);
|
||||
# endif
|
||||
#endif
|
||||
|
||||
memset(&mqattr, 0, sizeof(struct mq_attr));
|
||||
mqattr.mq_msgsize = sizeof(msg);
|
||||
mqattr.mq_maxmsg = 10;
|
||||
|
Loading…
Reference in New Issue
Block a user