Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party FreeBSD
提交
5424ee56
T
Third Party FreeBSD
项目概览
OpenHarmony
/
Third Party FreeBSD
1 年多 前同步成功
通知
3
Star
18
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party FreeBSD
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
5424ee56
编写于
5月 10, 2021
作者:
A
arvinzzz
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: Refactored the kernel boot process and added a init framework
close: #I3I768 Change-Id: Icf321cf346d24c55262bfd082b0fe6cb16deb0b3
上级
08660a71
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
44 addition
and
4 deletion
+44
-4
sys/arm/arm/autoconf.c
sys/arm/arm/autoconf.c
+22
-0
sys/compat/linuxkpi/common/src/linux_workqueue.c
sys/compat/linuxkpi/common/src/linux_workqueue.c
+11
-3
sys/dev/random/yarrow.c
sys/dev/random/yarrow.c
+11
-1
未找到文件。
sys/arm/arm/autoconf.c
浏览文件 @
5424ee56
...
...
@@ -50,6 +50,9 @@
__FBSDID
(
"$FreeBSD: releng/11.4/sys/arm/arm/autoconf.c 331722 2018-03-29 02:50:57Z eadler $"
);
#include <sys/bus.h>
#include "linux/module.h"
#include "los_config.h"
#include "los_init.h"
extern
int
nexus_init
(
void
);
device_t
nexus
;
...
...
@@ -63,3 +66,22 @@ configure(void)
nexus
=
device_add_child
(
root_bus
,
"nexus"
,
0
);
nexus_init
();
}
UINT32
OsBsdInit
(
VOID
)
{
/*
* WORKAROUND: Inside configure(), nexus_init() function calls
* HiSi-specific, library procedure - machine_resource_init().
* The latter one is defined in libhi35xx_bsp.a which is only
* available for Hi3516 and Hi3518.
* Temporarily ifdef configure until this routine is implemented
* by other platforms.
*/
#if defined(LOSCFG_PLATFORM_HI3516DV300) || defined(LOSCFG_PLATFORM_HI3518EV300)
configure
();
#endif
mi_startup
(
SI_SUB_ARCH_INIT
);
return
LOS_OK
;
}
LOS_MODULE_INIT
(
OsBsdInit
,
LOS_INIT_LEVEL_PLATFORM
);
sys/compat/linuxkpi/common/src/linux_workqueue.c
浏览文件 @
5424ee56
...
...
@@ -30,10 +30,10 @@
*/
#include "linux/workqueue.h"
#include "los_swtmr_pri.h"
#include "los_event.h"
#include "unistd.h"
#include "los_event.h"
#include "los_init.h"
#include "los_swtmr_pri.h"
#define DELAY_TIME 10000
...
...
@@ -607,3 +607,11 @@ void linux_destroy_workqueue(struct workqueue_struct *wq)
LOS_SpinUnlockRestore
(
&
g_workqueueSpin
,
intSave
);
}
UINT32
OsSysWorkQueueInit
(
VOID
)
{
g_pstSystemWq
=
create_workqueue
(
"system_wq"
);
return
LOS_OK
;
}
LOS_MODULE_INIT
(
OsSysWorkQueueInit
,
LOS_INIT_LEVEL_KMOD_EXTENDED
);
sys/dev/random/yarrow.c
浏览文件 @
5424ee56
...
...
@@ -34,7 +34,6 @@ __FBSDID("$FreeBSD: releng/11.4/sys/dev/random/yarrow.c 298923 2016-05-02 14:35:
#include <sys/mutex.h>
#include <sys/systm.h>
#include <crypto/rijndael/rijndael-api-fst.h>
#include <crypto/sha2/sha256.h>
...
...
@@ -52,6 +51,8 @@ __FBSDID("$FreeBSD: releng/11.4/sys/dev/random/yarrow.c 298923 2016-05-02 14:35:
#include <string.h>
#include <sys/mutex.h>
#include "los_init.h"
#include "unit_test.h"
#include <crypto/rijndael/rijndael-api-fst.h>
...
...
@@ -483,3 +484,12 @@ run_harvester_iterate(void *arg __unused)
(
void
)
memset_s
(
buf
,
sizeof
(
buf
),
0
,
sizeof
(
buf
));
#endif
}
#if defined(LOSCFG_HW_RANDOM_ENABLE) || defined(LOSCFG_DRIVERS_RANDOM)
UINT32
OsDriverRandomInit
(
VOID
)
{
random_alg_context
.
ra_init_alg
(
NULL
);
run_harvester_iterate
(
NULL
);
return
LOS_OK
;
}
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录