提交 e156f0f0 编写于 作者: O openharmony_ci 提交者: Gitee

!40 内核启动重构,新增启动框架

Merge pull request !40 from Zhaotianyu/0510init_framework
...@@ -36,20 +36,18 @@ ...@@ -36,20 +36,18 @@
/**************************************************************************** /****************************************************************************
* Included Files * Included Files
****************************************************************************/ ****************************************************************************/
#include <sys/types.h> #include "pipe_common.h"
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
#include <semaphore.h>
#include <stdio.h> #include <stdio.h>
#include <sys/types.h>
#include <unistd.h> #include <unistd.h>
#include <semaphore.h> #include "fs/fs.h"
#include <fcntl.h>
#include <errno.h>
#include <assert.h>
#include <fs/fs.h>
#include "fs/vnode.h" #include "fs/vnode.h"
#include "pipe_common.h" #include "los_init.h"
#include "stdio.h"
#if CONFIG_DEV_PIPE_SIZE > 0 #if CONFIG_DEV_PIPE_SIZE > 0
/**************************************************************************** /****************************************************************************
...@@ -342,9 +340,11 @@ int pipe_init() ...@@ -342,9 +340,11 @@ int pipe_init()
{ {
int ret = sem_init(&g_pipesem, 0, 1); int ret = sem_init(&g_pipesem, 0, 1);
if (ret != 0) { if (ret != 0) {
dprintf(" pipe_init failed!\n"); dprintf("pipe_init failed!\n");
} }
return ret; return ret;
} }
LOS_MODULE_INIT(pipe_init, LOS_INIT_LEVEL_KMOD_EXTENDED);
#endif /* CONFIG_DEV_PIPE_SIZE > 0 */ #endif /* CONFIG_DEV_PIPE_SIZE > 0 */
...@@ -39,6 +39,8 @@ ...@@ -39,6 +39,8 @@
/**************************************************************************** /****************************************************************************
* Included Files * Included Files
****************************************************************************/ ****************************************************************************/
#include "fs/fs.h"
#include "fs/vnode.h"
#include <sys/types.h> #include <sys/types.h>
#include <limits.h> #include <limits.h>
#include <stdint.h> #include <stdint.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册