Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
f9f1c8db
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
f9f1c8db
编写于
12月 15, 2016
作者:
R
Ralf Baechle
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
MIPS: IP22: Reformat inline assembler code to modern standards.
Signed-off-by:
N
Ralf Baechle
<
ralf@linux-mips.org
>
上级
e4c64e6f
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
23 addition
and
20 deletion
+23
-20
arch/mips/mm/sc-ip22.c
arch/mips/mm/sc-ip22.c
+23
-20
未找到文件。
arch/mips/mm/sc-ip22.c
浏览文件 @
f9f1c8db
...
...
@@ -31,26 +31,29 @@ static inline void indy_sc_wipe(unsigned long first, unsigned long last)
unsigned
long
tmp
;
__asm__
__volatile__
(
".set
\t
push
\t\t\t
# indy_sc_wipe
\n\t
"
".set
\t
noreorder
\n\t
"
".set
\t
mips3
\n\t
"
".set
\t
noat
\n\t
"
"mfc0
\t
%2, $12
\n\t
"
"li
\t
$1, 0x80
\t\t\t
# Go 64 bit
\n\t
"
"mtc0
\t
$1, $12
\n\t
"
"dli
\t
$1, 0x9000000080000000
\n\t
"
"or
\t
%0, $1
\t\t\t
# first line to flush
\n\t
"
"or
\t
%1, $1
\t\t\t
# last line to flush
\n\t
"
".set
\t
at
\n\t
"
"1:
\t
sw
\t
$0, 0(%0)
\n\t
"
"bne
\t
%0, %1, 1b
\n\t
"
" daddu
\t
%0, 32
\n\t
"
"mtc0
\t
%2, $12
\t\t\t
# Back to 32 bit
\n\t
"
"nop; nop; nop; nop;
\n\t
"
".set
\t
pop"
" .set push # indy_sc_wipe
\n
"
" .set noreorder
\n
"
" .set mips3
\n
"
" .set noat
\n
"
" mfc0 %2, $12
\n
"
" li $1, 0x80 # Go 64 bit
\n
"
" mtc0 $1, $12
\n
"
"
\n
"
" dli $1, 0x9000000080000000
\n
"
" or %0, $1 # first line to flush
\n
"
" or %1, $1 # last line to flush
\n
"
" .set at
\n
"
"
\n
"
"1: sw $0, 0(%0)
\n
"
" bne %0, %1, 1b
\n
"
" daddu %0, 32
\n
"
"
\n
"
" mtc0 %2, $12 # Back to 32 bit
\n
"
" nop # pipeline hazard
\n
"
" nop
\n
"
" nop
\n
"
" nop
\n
"
" .set pop
\n
"
:
"=r"
(
first
),
"=r"
(
last
),
"=&r"
(
tmp
)
:
"0"
(
first
),
"1"
(
last
));
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录