Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
df7d6aec
cloud-kernel
项目概览
openanolis
/
cloud-kernel
大约 1 年 前同步成功
通知
158
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
df7d6aec
编写于
2月 07, 2006
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[SPARC64]: Rename gl_{1,2}insn_patch --> sun4v_{1,2}insn_patch
Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
d257d5da
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
35 addition
and
32 deletion
+35
-32
arch/sparc64/kernel/etrap.S
arch/sparc64/kernel/etrap.S
+2
-2
arch/sparc64/kernel/ktlb.S
arch/sparc64/kernel/ktlb.S
+2
-2
arch/sparc64/kernel/rtrap.S
arch/sparc64/kernel/rtrap.S
+2
-2
arch/sparc64/kernel/setup.c
arch/sparc64/kernel/setup.c
+8
-8
arch/sparc64/kernel/tsb.S
arch/sparc64/kernel/tsb.S
+6
-6
arch/sparc64/kernel/vmlinux.lds.S
arch/sparc64/kernel/vmlinux.lds.S
+6
-6
arch/sparc64/mm/ultra.S
arch/sparc64/mm/ultra.S
+2
-2
include/asm-sparc64/cpudata.h
include/asm-sparc64/cpudata.h
+7
-4
未找到文件。
arch/sparc64/kernel/etrap.S
浏览文件 @
df7d6aec
...
...
@@ -105,7 +105,7 @@ etrap_save: save %g2, -STACK_BIAS, %sp
/
*
Go
to
trap
time
globals
so
we
can
save
them
.
*/
661
:
wrpr
%
g0
,
ETRAP_PSTATE1
,
%
pstate
.
section
.
gl
_1insn_patch
,
"ax"
.
section
.
sun4v
_1insn_patch
,
"ax"
.
word
661
b
SET_GL
(0)
.
previous
...
...
@@ -206,7 +206,7 @@ etraptl1: /* Save tstate/tpc/tnpc of TL 1-->4 and the tl register itself.
wrpr
%
g0
,
1
,
%
tl
661
:
nop
.
section
.
gl
_1insn_patch
,
"ax"
.
section
.
sun4v
_1insn_patch
,
"ax"
.
word
661
b
SET_GL
(1)
.
previous
...
...
arch/sparc64/kernel/ktlb.S
浏览文件 @
df7d6aec
...
...
@@ -67,7 +67,7 @@ kvmap_itlb_longpath:
661
:
rdpr
%
pstate
,
%
g5
wrpr
%
g5
,
PSTATE_AG
|
PSTATE_MG
,
%
pstate
.
section
.
gl
_2insn_patch
,
"ax"
.
section
.
sun4v
_2insn_patch
,
"ax"
.
word
661
b
nop
nop
...
...
@@ -179,7 +179,7 @@ kvmap_dtlb_longpath:
661
:
rdpr
%
pstate
,
%
g5
wrpr
%
g5
,
PSTATE_AG
|
PSTATE_MG
,
%
pstate
.
section
.
gl
_2insn_patch
,
"ax"
.
section
.
sun4v
_2insn_patch
,
"ax"
.
word
661
b
nop
nop
...
...
arch/sparc64/kernel/rtrap.S
浏览文件 @
df7d6aec
...
...
@@ -234,7 +234,7 @@ rt_continue: ldx [%sp + PTREGS_OFF + PT_V9_G1], %g1
/
*
Normal
globals
are
restored
,
go
to
trap
globals
.
*/
661
:
wrpr
%
g0
,
RTRAP_PSTATE_AG_IRQOFF
,
%
pstate
.
section
.
gl
_1insn_patch
,
"ax"
.
section
.
sun4v
_1insn_patch
,
"ax"
.
word
661
b
SET_GL
(1)
.
previous
...
...
@@ -316,7 +316,7 @@ user_rtt_fill_fixup:
wrpr
%
g0
,
RTRAP_PSTATE
,
%
pstate
661
:
nop
.
section
.
gl
_1insn_patch
,
"ax"
.
section
.
sun4v
_1insn_patch
,
"ax"
.
word
661
b
SET_GL
(0)
.
previous
...
...
arch/sparc64/kernel/setup.c
浏览文件 @
df7d6aec
...
...
@@ -549,16 +549,16 @@ static void __init per_cpu_patch(void)
#endif
}
static
void
__init
gl
_patch
(
void
)
static
void
__init
sun4v
_patch
(
void
)
{
struct
gl
_1insn_patch_entry
*
p1
;
struct
gl
_2insn_patch_entry
*
p2
;
struct
sun4v
_1insn_patch_entry
*
p1
;
struct
sun4v
_2insn_patch_entry
*
p2
;
if
(
tlb_type
!=
hypervisor
)
return
;
p1
=
&
__
gl
_1insn_patch
;
while
(
p1
<
&
__
gl
_1insn_patch_end
)
{
p1
=
&
__
sun4v
_1insn_patch
;
while
(
p1
<
&
__
sun4v
_1insn_patch_end
)
{
unsigned
long
addr
=
p1
->
addr
;
*
(
unsigned
int
*
)
(
addr
+
0
)
=
p1
->
insn
;
...
...
@@ -568,8 +568,8 @@ static void __init gl_patch(void)
p1
++
;
}
p2
=
&
__
gl
_2insn_patch
;
while
(
p2
<
&
__
gl
_2insn_patch_end
)
{
p2
=
&
__
sun4v
_2insn_patch
;
while
(
p2
<
&
__
sun4v
_2insn_patch_end
)
{
unsigned
long
addr
=
p2
->
addr
;
*
(
unsigned
int
*
)
(
addr
+
0
)
=
p2
->
insns
[
0
];
...
...
@@ -606,7 +606,7 @@ void __init setup_arch(char **cmdline_p)
*/
per_cpu_patch
();
gl
_patch
();
sun4v
_patch
();
boot_flags_init
(
*
cmdline_p
);
...
...
arch/sparc64/kernel/tsb.S
浏览文件 @
df7d6aec
...
...
@@ -74,7 +74,7 @@ tsb_dtlb_load:
661
:
stxa
%
g5
,
[%
g0
]
ASI_DTLB_DATA_IN
retry
.
section
.
gl
_2insn_patch
,
"ax"
.
section
.
sun4v
_2insn_patch
,
"ax"
.
word
661
b
nop
nop
...
...
@@ -99,7 +99,7 @@ tsb_itlb_load:
661
:
stxa
%
g5
,
[%
g0
]
ASI_ITLB_DATA_IN
retry
.
section
.
gl
_2insn_patch
,
"ax"
.
section
.
sun4v
_2insn_patch
,
"ax"
.
word
661
b
nop
nop
...
...
@@ -130,7 +130,7 @@ tsb_do_fault:
661
:
rdpr
%
pstate
,
%
g5
wrpr
%
g5
,
PSTATE_AG
|
PSTATE_MG
,
%
pstate
.
section
.
gl
_2insn_patch
,
"ax"
.
section
.
sun4v
_2insn_patch
,
"ax"
.
word
661
b
nop
nop
...
...
@@ -145,7 +145,7 @@ tsb_do_dtlb_fault:
661
:
mov
TLB_TAG_ACCESS
,
%
g4
ldxa
[%
g4
]
ASI_DMMU
,
%
g5
.
section
.
gl
_2insn_patch
,
"ax"
.
section
.
sun4v
_2insn_patch
,
"ax"
.
word
661
b
mov
%
g4
,
%
g5
nop
...
...
@@ -250,7 +250,7 @@ __tsb_context_switch:
661
:
mov
TSB_REG
,
%
g1
stxa
%
o1
,
[%
g1
]
ASI_DMMU
.
section
.
gl
_2insn_patch
,
"ax"
.
section
.
sun4v
_2insn_patch
,
"ax"
.
word
661
b
mov
SCRATCHPAD_UTSBREG1
,
%
g1
stxa
%
o1
,
[%
g1
]
ASI_SCRATCHPAD
...
...
@@ -260,7 +260,7 @@ __tsb_context_switch:
661
:
stxa
%
o1
,
[%
g1
]
ASI_IMMU
membar
#
Sync
.
section
.
gl
_2insn_patch
,
"ax"
.
section
.
sun4v
_2insn_patch
,
"ax"
.
word
661
b
nop
nop
...
...
arch/sparc64/kernel/vmlinux.lds.S
浏览文件 @
df7d6aec
...
...
@@ -80,12 +80,12 @@ SECTIONS
__cpuid_patch
=
.
;
.
cpuid_patch
:
{
*(
.
cpuid_patch
)
}
__cpuid_patch_end
=
.
;
__
gl
_1insn_patch
=
.
;
.
gl_1insn_patch
:
{
*(
.
gl
_1insn_patch
)
}
__
gl
_1insn_patch_end
=
.
;
__
gl
_2insn_patch
=
.
;
.
gl_2insn_patch
:
{
*(
.
gl
_2insn_patch
)
}
__
gl
_2insn_patch_end
=
.
;
__
sun4v
_1insn_patch
=
.
;
.
sun4v_1insn_patch
:
{
*(
.
sun4v
_1insn_patch
)
}
__
sun4v
_1insn_patch_end
=
.
;
__
sun4v
_2insn_patch
=
.
;
.
sun4v_2insn_patch
:
{
*(
.
sun4v
_2insn_patch
)
}
__
sun4v
_2insn_patch_end
=
.
;
.
=
ALIGN
(
8192
)
;
__initramfs_start
=
.
;
.
init.ramfs
:
{
*(
.
init
.
ramfs
)
}
...
...
arch/sparc64/mm/ultra.S
浏览文件 @
df7d6aec
...
...
@@ -447,7 +447,7 @@ xcall_sync_tick:
661
:
rdpr
%
pstate
,
%
g2
wrpr
%
g2
,
PSTATE_IG
|
PSTATE_AG
,
%
pstate
.
section
.
gl
_2insn_patch
,
"ax"
.
section
.
sun4v
_2insn_patch
,
"ax"
.
word
661
b
nop
nop
...
...
@@ -478,7 +478,7 @@ xcall_report_regs:
661
:
rdpr
%
pstate
,
%
g2
wrpr
%
g2
,
PSTATE_IG
|
PSTATE_AG
,
%
pstate
.
section
.
gl
_2insn_patch
,
"ax"
.
section
.
sun4v
_2insn_patch
,
"ax"
.
word
661
b
nop
nop
...
...
include/asm-sparc64/cpudata.h
浏览文件 @
df7d6aec
...
...
@@ -78,17 +78,20 @@ struct cpuid_patch_entry {
extern
struct
cpuid_patch_entry
__cpuid_patch
,
__cpuid_patch_end
;
#endif
struct
gl
_1insn_patch_entry
{
struct
sun4v
_1insn_patch_entry
{
unsigned
int
addr
;
unsigned
int
insn
;
};
extern
struct
gl_1insn_patch_entry
__gl_1insn_patch
,
__gl_1insn_patch_end
;
extern
struct
sun4v_1insn_patch_entry
__sun4v_1insn_patch
,
__sun4v_1insn_patch_end
;
struct
gl
_2insn_patch_entry
{
struct
sun4v
_2insn_patch_entry
{
unsigned
int
addr
;
unsigned
int
insns
[
2
];
};
extern
struct
gl_2insn_patch_entry
__gl_2insn_patch
,
__gl_2insn_patch_end
;
extern
struct
sun4v_2insn_patch_entry
__sun4v_2insn_patch
,
__sun4v_2insn_patch_end
;
#endif
/* !(__ASSEMBLY__) */
#define TRAP_PER_CPU_THREAD 0x00
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录