Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Kernel Liteos M
提交
d50c1063
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,发现更多精彩内容 >>
未验证
提交
d50c1063
编写于
1月 13, 2022
作者:
O
openharmony_ci
提交者:
Gitee
1月 13, 2022
浏览文件
操作
浏览文件
下载
差异文件
!536 xtensa架构增加alloc异常入口
Merge pull request !536 from ouyk/master
上级
b9c99362
697a0cbd
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
43 addition
and
4 deletion
+43
-4
arch/xtensa/lx6/gcc/los_arch_regs.h
arch/xtensa/lx6/gcc/los_arch_regs.h
+5
-0
arch/xtensa/lx6/gcc/los_exc.S
arch/xtensa/lx6/gcc/los_exc.S
+38
-4
未找到文件。
arch/xtensa/lx6/gcc/los_arch_regs.h
浏览文件 @
d50c1063
...
...
@@ -142,6 +142,11 @@ extern "C" {
#else
#define CONTEXT_SIZE 112
#endif
#define LEVEL1_TINRERRUPT_CAUSE 4
#define ALLOC_CAUSE 5
#define LOWBIT_CALLNMODE 30
#define HIGHBIT_CALLNMODE 31
#define PS_OWB_SHIFT 8
#define EXCCAUSE_LEVEL1INTERRUPT 4
#define XTENSA_LOGREG_NUM 16
#define INDEX_OF_SP 1
...
...
arch/xtensa/lx6/gcc/los_exc.S
浏览文件 @
d50c1063
...
...
@@ -98,9 +98,6 @@ NMIExceptionHandler:
.
literal_position
DoubleExceptionHandler
:
movi
a0
,
INT_MASK
| USER_VECTOR_MODE |
WOE_ENABLE
wsr
a0
,
PS
rsr
a2
,
EXCCAUSE
call0
UserException
.
end
literal_prefix
...
...
@@ -145,11 +142,18 @@ UserExceptionHandler:
UserException
:
rsr
a0
,
EXCCAUSE
beqi
a0
,
4
,
InterruptEntry1
beqi
a0
,
LEVEL1_TINRERRUPT_CAUSE
,
InterruptEntry1
beqi
a0
,
ALLOC_CAUSE
,
AllocHandel
call0
HandleEntry
1
:
j
1
b
.
section
.
iram
,"
ax
"
.
type
AllocHandel
,@
function
.
align
4
AllocHandel
:
call0
AllocHandelEntry
.
section
.
iram
,"
ax
"
.
type
InterruptEntry1
,@
function
.
align
4
...
...
@@ -361,6 +365,36 @@ UnderFlowGroup3:
l32i
a4
,
a4
,
0
rfwu
.
section
.
userVector
,"
ax
"
.
type
AllocHandelEntry
,@
function
.
align
4
AllocHandelEntry
:
addi
a1
,
a1
,
-(
CONTEXT_OFF_A4
-
CONTEXT_OFF_A0
)
s32i
a2
,
a1
,
(
CONTEXT_OFF_A2
-
CONTEXT_OFF_A0
)
s32i
a3
,
a1
,
(
CONTEXT_OFF_A3
-
CONTEXT_OFF_A0
)
rsr
a0
,
PS
rsr
a2
,
WINDOWBASE
extui
a3
,
a0
,
PS_OWB_SHIFT
,
WINDOWBASEBITS
xor
a3
,
a3
,
a2
slli
a3
,
a3
,
PS_OWB_SHIFT
xor
a0
,
a0
,
a3
wsr
a0
,
PS
rsr
a0
,
EXCSAVE1
l32i
a2
,
a1
,
(
CONTEXT_OFF_A2
-
CONTEXT_OFF_A0
)
l32i
a3
,
a1
,
(
CONTEXT_OFF_A3
-
CONTEXT_OFF_A0
)
addi
a1
,
a1
,
(
CONTEXT_OFF_A4
-
CONTEXT_OFF_A0
)
rsync
rotw
-
1
bbci
a4
,
HIGHBIT_CALLNMODE
,
UnderFlowGroup1
rotw
-
1
bbci
a8
,
LOWBIT_CALLNMODE
,
UnderFlowGroup2
rotw
-
1
j
UnderFlowGroup3
.
global
EnableExceptionInterface
.
section
.
iram
,"
ax
"
.
type
EnableExceptionInterface
,@
function
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录