Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
f94d9a8e
K
Kernel
项目概览
openeuler
/
Kernel
11 个月 前同步成功
通知
5
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f94d9a8e
编写于
5月 21, 2013
作者:
R
Ralf Baechle
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
MIPS: Idle: Do address fiddlery in helper functions.
Signed-off-by:
N
Ralf Baechle
<
ralf@linux-mips.org
>
上级
bdc92d74
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
15 addition
and
6 deletion
+15
-6
arch/mips/include/asm/idle.h
arch/mips/include/asm/idle.h
+11
-0
arch/mips/kernel/smtc.c
arch/mips/kernel/smtc.c
+1
-2
arch/mips/kernel/traps.c
arch/mips/kernel/traps.c
+3
-4
未找到文件。
arch/mips/include/asm/idle.h
浏览文件 @
f94d9a8e
...
...
@@ -8,4 +8,15 @@ extern asmlinkage void r4k_wait(void);
extern
void
r4k_wait_irqoff
(
void
);
extern
void
__pastwait
(
void
);
static
inline
int
using_rollback_handler
(
void
)
{
return
cpu_wait
==
r4k_wait
;
}
static
inline
int
address_is_in_r4k_wait_irqoff
(
unsigned
long
addr
)
{
return
addr
>=
(
unsigned
long
)
r4k_wait_irqoff
&&
addr
<
(
unsigned
long
)
__pastwait
;
}
#endif
/* __ASM_IDLE_H */
arch/mips/kernel/smtc.c
浏览文件 @
f94d9a8e
...
...
@@ -914,8 +914,7 @@ void smtc_send_ipi(int cpu, int type, unsigned int action)
*/
if
(
cpu_wait
==
r4k_wait_irqoff
)
{
tcrestart
=
read_tc_c0_tcrestart
();
if
(
tcrestart
>=
(
unsigned
long
)
r4k_wait_irqoff
&&
tcrestart
<
(
unsigned
long
)
__pastwait
)
{
if
(
address_is_in_r4k_wait_irqoff
(
tcrestart
))
{
write_tc_c0_tcrestart
(
__pastwait
);
tcstatus
&=
~
TCSTATUS_IXMT
;
write_tc_c0_tcstatus
(
tcstatus
);
...
...
arch/mips/kernel/traps.c
浏览文件 @
f94d9a8e
...
...
@@ -1542,7 +1542,7 @@ static void *set_vi_srs_handler(int n, vi_handler_t addr, int srs)
extern
char
except_vec_vi
,
except_vec_vi_lui
;
extern
char
except_vec_vi_ori
,
except_vec_vi_end
;
extern
char
rollback_except_vec_vi
;
char
*
vec_start
=
(
cpu_wait
==
r4k_wait
)
?
char
*
vec_start
=
using_rollback_handler
(
)
?
&
rollback_except_vec_vi
:
&
except_vec_vi
;
#ifdef CONFIG_MIPS_MT_SMTC
/*
...
...
@@ -1812,10 +1812,8 @@ void __init trap_init(void)
extern
char
except_vec4
;
extern
char
except_vec3_r4000
;
unsigned
long
i
;
int
rollback
;
check_wait
();
rollback
=
(
cpu_wait
==
r4k_wait
);
#if defined(CONFIG_KGDB)
if
(
kgdb_early_setup
)
...
...
@@ -1892,7 +1890,8 @@ void __init trap_init(void)
if
(
board_be_init
)
board_be_init
();
set_except_vector
(
0
,
rollback
?
rollback_handle_int
:
handle_int
);
set_except_vector
(
0
,
using_rollback_handler
()
?
rollback_handle_int
:
handle_int
);
set_except_vector
(
1
,
handle_tlbm
);
set_except_vector
(
2
,
handle_tlbl
);
set_except_vector
(
3
,
handle_tlbs
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录