Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos M
提交
285d9097
K
Kernel Liteos M
项目概览
OpenHarmony
/
Kernel Liteos M
大约 1 年 前同步成功
通知
20
Star
28
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel Liteos M
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
285d9097
编写于
7月 29, 2021
作者:
O
openharmony_ci
提交者:
Gitee
7月 29, 2021
浏览文件
操作
浏览文件
下载
差异文件
!238 M33 平台 trust zone 适配修改
Merge pull request !238 from wangchen/tz_fix
上级
7bd5a806
15a2c17f
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
12 addition
and
29 deletion
+12
-29
kernel/BUILD.gn
kernel/BUILD.gn
+1
-1
kernel/arch/arm/cortex-m33/gcc/NTZ/los_arch_interrupt.h
kernel/arch/arm/cortex-m33/gcc/NTZ/los_arch_interrupt.h
+1
-1
kernel/arch/arm/cortex-m33/gcc/NTZ/los_exc.S
kernel/arch/arm/cortex-m33/gcc/NTZ/los_exc.S
+4
-4
kernel/arch/arm/cortex-m33/gcc/NTZ/los_interrupt.c
kernel/arch/arm/cortex-m33/gcc/NTZ/los_interrupt.c
+1
-1
kernel/arch/arm/cortex-m33/gcc/TZ/BUILD.gn
kernel/arch/arm/cortex-m33/gcc/TZ/BUILD.gn
+2
-0
kernel/arch/arm/cortex-m33/gcc/TZ/non_secure/los_arch_interrupt.h
...rch/arm/cortex-m33/gcc/TZ/non_secure/los_arch_interrupt.h
+1
-1
kernel/arch/arm/cortex-m33/gcc/TZ/non_secure/los_dispatch.S
kernel/arch/arm/cortex-m33/gcc/TZ/non_secure/los_dispatch.S
+0
-3
kernel/arch/arm/cortex-m33/gcc/TZ/non_secure/los_exc.S
kernel/arch/arm/cortex-m33/gcc/TZ/non_secure/los_exc.S
+0
-16
kernel/arch/arm/cortex-m33/gcc/TZ/non_secure/los_interrupt.c
kernel/arch/arm/cortex-m33/gcc/TZ/non_secure/los_interrupt.c
+1
-1
kernel/arch/arm/cortex-m33/gcc/TZ/secure/los_secure_context_asm.S
...rch/arm/cortex-m33/gcc/TZ/secure/los_secure_context_asm.S
+1
-1
未找到文件。
kernel/BUILD.gn
浏览文件 @
285d9097
...
...
@@ -61,7 +61,7 @@ static_library("kernel") {
} else if ("$board_cpu" == "cortex-m7") {
deps = [ "arch/arm/cortex-m7/gcc/:arch" ]
} else if ("$board_cpu" == "cortex-m33") {
deps = [ "arch/arm/cortex-m33/gcc/:arch" ]
deps = [ "arch/arm/cortex-m33/gcc/
TZ
:arch" ]
} else if ("$board_cpu" == "") {
if ("$board_arch" == "rv32imac" || "$board_arch" == "rv32imafdc") {
deps = [ "arch/risc-v/riscv32/gcc:arch" ]
...
...
kernel/arch/arm/cortex-m33/gcc/NTZ/los_arch_interrupt.h
浏览文件 @
285d9097
...
...
@@ -545,7 +545,7 @@ VOID HalExcHardFault(VOID);
VOID
HalExcMemFault
(
VOID
);
VOID
HalExcBusFault
(
VOID
);
VOID
HalExcUsageFault
(
VOID
);
VOID
Hal
ExcSvcCall
(
VOID
);
VOID
Hal
SVCHandler
(
VOID
);
VOID
HalHwiInit
();
...
...
kernel/arch/arm/cortex-m33/gcc/NTZ/los_exc.S
浏览文件 @
285d9097
...
...
@@ -41,7 +41,7 @@
.
global
HalExcMemFault
.
global
HalExcBusFault
.
global
HalExcUsageFault
.
global
Hal
ExcSvcCall
.
global
Hal
SVCHandler
.
extern
HalExcHandleEntry
.
extern
g_uwExcTbl
...
...
@@ -148,9 +148,9 @@ osHFExcCommonBMU:
B
osExcDispatch
.
fnend
.
type
Hal
ExcSvcCall
,
%
function
.
global
Hal
ExcSvcCall
Hal
ExcSvcCall
:
.
type
Hal
SVCHandler
,
%
function
.
global
Hal
SVCHandler
Hal
SVCHandler
:
.
fnstart
.
cantunwind
TST
LR
,
#
0x4
...
...
kernel/arch/arm/cortex-m33/gcc/NTZ/los_interrupt.c
浏览文件 @
285d9097
...
...
@@ -497,7 +497,7 @@ LITE_OS_SEC_TEXT_INIT VOID HalHwiInit()
g_hwiForm
[
MemoryManagement_IRQn
+
OS_SYS_VECTOR_CNT
]
=
HalExcMemFault
;
g_hwiForm
[
BusFault_IRQn
+
OS_SYS_VECTOR_CNT
]
=
HalExcBusFault
;
g_hwiForm
[
UsageFault_IRQn
+
OS_SYS_VECTOR_CNT
]
=
HalExcUsageFault
;
g_hwiForm
[
SVCall_IRQn
+
OS_SYS_VECTOR_CNT
]
=
Hal
ExcSvcCall
;
g_hwiForm
[
SVCall_IRQn
+
OS_SYS_VECTOR_CNT
]
=
Hal
SVCHandler
;
g_hwiForm
[
PendSV_IRQn
+
OS_SYS_VECTOR_CNT
]
=
HalPendSV
;
g_hwiForm
[
SysTick_IRQn
+
OS_SYS_VECTOR_CNT
]
=
OsTickHandler
;
...
...
kernel/arch/arm/cortex-m33/gcc/TZ/BUILD.gn
浏览文件 @
285d9097
...
...
@@ -41,6 +41,8 @@ static_library("arch") {
]
include_dirs = [
"./non_secure",
"./secure",
"../../../../../../kernel/arch/include",
"../../../../../../kernel/arch/include",
"../../../../../../kernel/include",
...
...
kernel/arch/arm/cortex-m33/gcc/TZ/non_secure/los_arch_interrupt.h
浏览文件 @
285d9097
...
...
@@ -545,7 +545,7 @@ VOID HalExcHardFault(VOID);
VOID
HalExcMemFault
(
VOID
);
VOID
HalExcBusFault
(
VOID
);
VOID
HalExcUsageFault
(
VOID
);
VOID
Hal
ExcSvcCall
(
VOID
);
VOID
Hal
SVCHandler
(
VOID
);
VOID
HalHwiInit
();
...
...
kernel/arch/arm/cortex-m33/gcc/TZ/non_secure/los_dispatch.S
浏览文件 @
285d9097
...
...
@@ -48,8 +48,6 @@
.
type
HalStartFirstTask
,
%
function
.
global
HalStartFirstTask
HalStartFirstTask
:
.
fnstart
.
cantunwind
MOV
R0
,
#
2
MSR
CONTROL
,
R0
...
...
@@ -77,7 +75,6 @@ __DisabledFPU1:
MSR
PSP
,
R12
CPSIE
I
BX
R3
.
fnend
.
type
HalIntLock
,
%
function
.
global
HalIntLock
...
...
kernel/arch/arm/cortex-m33/gcc/TZ/non_secure/los_exc.S
浏览文件 @
285d9097
...
...
@@ -41,7 +41,6 @@
.
global
HalExcMemFault
.
global
HalExcBusFault
.
global
HalExcUsageFault
.
global
HalExcSvcCall
.
extern
HalExcHandleEntry
.
extern
g_uwExcTbl
...
...
@@ -148,21 +147,6 @@ osHFExcCommonBMU:
B
osExcDispatch
.
fnend
.
type
HalExcSvcCall
,
%
function
.
global
HalExcSvcCall
HalExcSvcCall
:
.
fnstart
.
cantunwind
TST
LR
,
#
0x4
ITE
EQ
MRSEQ
R0
,
MSP
MRSNE
R0
,
PSP
LDR
R1
,
[
R0
,#
24
]
LDRB
R0
,
[
R1
,#-
2
]
MOV
R1
,
#
0
B
osExcDispatch
.
fnend
.
type
HalExcBusFault
,
%
function
.
global
HalExcBusFault
HalExcBusFault
:
...
...
kernel/arch/arm/cortex-m33/gcc/TZ/non_secure/los_interrupt.c
浏览文件 @
285d9097
...
...
@@ -497,7 +497,7 @@ LITE_OS_SEC_TEXT_INIT VOID HalHwiInit()
g_hwiForm
[
MemoryManagement_IRQn
+
OS_SYS_VECTOR_CNT
]
=
HalExcMemFault
;
g_hwiForm
[
BusFault_IRQn
+
OS_SYS_VECTOR_CNT
]
=
HalExcBusFault
;
g_hwiForm
[
UsageFault_IRQn
+
OS_SYS_VECTOR_CNT
]
=
HalExcUsageFault
;
g_hwiForm
[
SVCall_IRQn
+
OS_SYS_VECTOR_CNT
]
=
Hal
ExcSvcCall
;
g_hwiForm
[
SVCall_IRQn
+
OS_SYS_VECTOR_CNT
]
=
Hal
SVCHandler
;
g_hwiForm
[
PendSV_IRQn
+
OS_SYS_VECTOR_CNT
]
=
HalPendSV
;
g_hwiForm
[
SysTick_IRQn
+
OS_SYS_VECTOR_CNT
]
=
OsTickHandler
;
...
...
kernel/arch/arm/cortex-m33/gcc/TZ/secure/los_secure_context_asm.S
浏览文件 @
285d9097
...
...
@@ -94,7 +94,7 @@ HalSecureContextSaveAsm:
MOV
R0
,
#
0
MSR
PSPLIM
,
R0
/*
No
PSPLIM
for
the
current
task
.
*/
MSR
PSP
,
R0
/*
No
secure
stack
for
the
current
task
.
*/
.
fnend
__ThreadMode
:
BX
LR
.
fnend
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录