Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PHPmihuan
rt-thread
提交
bd95f3a9
R
rt-thread
项目概览
PHPmihuan
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
bd95f3a9
编写于
8月 26, 2020
作者:
B
bigmagic
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix mips stackframe and exception
上级
cf622e51
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
24 addition
and
11 deletion
+24
-11
libcpu/Kconfig
libcpu/Kconfig
+4
-0
libcpu/mips/common/context_gcc.S
libcpu/mips/common/context_gcc.S
+11
-10
libcpu/mips/common/exception_gcc.S
libcpu/mips/common/exception_gcc.S
+7
-1
libcpu/mips/common/stackframe.h
libcpu/mips/common/stackframe.h
+2
-0
未找到文件。
libcpu/Kconfig
浏览文件 @
bd95f3a9
...
...
@@ -82,6 +82,10 @@ config ARCH_MIPS
config ARCH_MIPS64
bool
select ARCH_CPU_64BIT
config ARCH_CPU_64BIT
bool
config ARCH_MIPS_XBURST
bool
...
...
libcpu/mips/common/context_gcc.S
浏览文件 @
bd95f3a9
/*
*
Copyright
(
c
)
2006
-
20
19
,
RT
-
Thread
Development
Team
*
Copyright
(
c
)
2006
-
20
20
,
RT
-
Thread
Development
Team
*
*
SPDX
-
License
-
Identifier
:
Apache
-
2
.0
*
*
Change
Logs
:
*
Date
Author
Notes
*
2019
-
12
-
04
Jiaxun
Yang
Initial
version
*
2020
-
07
-
26
lizhirui
Fixed
some
problems
*/
#ifndef __ASSEMBLY__
...
...
@@ -56,12 +57,12 @@ rt_hw_context_switch_interrupt:
bnez
t1
,
_reswitch
nop
li
t1
,
0x01
/*
set
rt_thread_switch_interrupt_flag
to
1
*/
sw
t1
,
0
(
t0
)
LONG_S
t1
,
0
(
t0
)
PTR_LA
t0
,
rt_interrupt_from_thread
/*
set
rt_interrupt_from_thread
*/
sw
a0
,
0
(
t0
)
LONG_S
a0
,
0
(
t0
)
_reswitch
:
PTR_LA
t0
,
rt_interrupt_to_thread
/*
set
rt_interrupt_to_thread
*/
sw
a1
,
0
(
t0
)
LONG_S
a1
,
0
(
t0
)
jr
ra
nop
...
...
@@ -97,24 +98,24 @@ mips_irq_handle:
*
rt_hw_context_switch_interrupt_do
and
do
not
return
*/
PTR_LA
k0
,
rt_thread_switch_interrupt_flag
lw
k1
,
0
(
k0
)
LONG_L
k1
,
0
(
k0
)
beqz
k1
,
spurious_interrupt
nop
sw
zero
,
0
(
k0
)
/*
clear
flag
*/
LONG_S
zero
,
0
(
k0
)
/*
clear
flag
*/
nop
/
*
*
switch
to
the
new
thread
*/
PTR_LA
k0
,
rt_interrupt_from_thread
lw
k1
,
0
(
k0
)
LONG_L
k1
,
0
(
k0
)
nop
sw
sp
,
0
(
k1
)
/*
store
sp
in
preempted
task
TCB
*/
LONG_S
sp
,
0
(
k1
)
/*
store
sp
in
preempted
task
TCB
*/
PTR_LA
k0
,
rt_interrupt_to_thread
lw
k1
,
0
(
k0
)
LONG_L
k1
,
0
(
k0
)
nop
lw
sp
,
0
(
k1
)
/*
get
new
task
stack
pointer
*/
LONG_L
sp
,
0
(
k1
)
/*
get
new
task
stack
pointer
*/
j
spurious_interrupt
nop
...
...
libcpu/mips/common/exception_gcc.S
浏览文件 @
bd95f3a9
/*
*
Copyright
(
c
)
2006
-
20
19
,
RT
-
Thread
Development
Team
*
Copyright
(
c
)
2006
-
20
20
,
RT
-
Thread
Development
Team
*
*
SPDX
-
License
-
Identifier
:
Apache
-
2
.0
*
*
Change
Logs
:
*
Date
Author
Notes
*
2019
-
12
-
04
Jiaxun
Yang
Initial
version
*
2020
-
07
-
26
lizhirui
Add
xtlb
exception
entry
*/
#ifndef __ASSEMBLY__
#define __ASSEMBLY__
...
...
@@ -26,6 +27,11 @@ tlb_refill_exception:
b
_general_exception_handler
nop
/
*
0x080
-
XTLB
refill
handler
*/
.
org
ebase_start
+
0x080
b
_general_exception_handler
nop
/
*
0x100
-
Cache
error
handler
*/
.
org
ebase_start
+
0x100
j
cache_error_handler
...
...
libcpu/mips/common/stackframe.h
浏览文件 @
bd95f3a9
...
...
@@ -206,6 +206,8 @@
li
v1
,
~
(
ST0_CU1
|
ST0_FR
|
ST0_IM
)
and
v0
,
v1
or
v0
,
a0
li
v1
,
(
ST0_KX
|
ST0_SX
|
ST0_UX
)
or
v0
,
v1
mtc0
v0
,
CP0_STATUS
LONG_L
v1
,
PT_EPC
(
sp
)
MTC0
v1
,
CP0_EPC
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录