Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
e7958bb9
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看板
提交
e7958bb9
编写于
12月 08, 2005
作者:
R
Ralf Baechle
提交者:
1月 10, 2006
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
MIPS: Rename MIPS_CPU_ISA_M{32,64} -> MIPS_CPU_ISA_M{32,64}R1.
Signed-off-by:
N
Ralf Baechle
<
ralf@linux-mips.org
>
上级
571e0bed
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
19 deletion
+16
-19
arch/mips/kernel/cpu-probe.c
arch/mips/kernel/cpu-probe.c
+6
-6
arch/mips/kernel/time.c
arch/mips/kernel/time.c
+1
-1
arch/mips/mm/c-r4k.c
arch/mips/mm/c-r4k.c
+2
-2
include/asm-mips/cpu.h
include/asm-mips/cpu.h
+7
-10
未找到文件。
arch/mips/kernel/cpu-probe.c
浏览文件 @
e7958bb9
...
...
@@ -447,10 +447,10 @@ static inline unsigned int decode_config0(struct cpuinfo_mips *c)
isa
=
(
config0
&
MIPS_CONF_AT
)
>>
13
;
switch
(
isa
)
{
case
0
:
c
->
isa_level
=
MIPS_CPU_ISA_M32
;
c
->
isa_level
=
MIPS_CPU_ISA_M32
R1
;
break
;
case
2
:
c
->
isa_level
=
MIPS_CPU_ISA_M64
;
c
->
isa_level
=
MIPS_CPU_ISA_M64
R1
;
break
;
default:
panic
(
"Unsupported ISA type, cp0.config0.at: %d."
,
isa
);
...
...
@@ -568,7 +568,7 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c)
break
;
case
PRID_IMP_34K
:
c
->
cputype
=
CPU_34K
;
c
->
isa_level
=
MIPS_CPU_ISA_M32
;
c
->
isa_level
=
MIPS_CPU_ISA_M32
R1
;
break
;
}
}
...
...
@@ -647,7 +647,7 @@ static inline void cpu_probe_philips(struct cpuinfo_mips *c)
switch
(
c
->
processor_id
&
0xff00
)
{
case
PRID_IMP_PR4450
:
c
->
cputype
=
CPU_PR4450
;
c
->
isa_level
=
MIPS_CPU_ISA_M32
;
c
->
isa_level
=
MIPS_CPU_ISA_M32
R1
;
break
;
default:
panic
(
"Unknown Philips Core!"
);
/* REVISIT: die? */
...
...
@@ -690,8 +690,8 @@ __init void cpu_probe(void)
if
(
c
->
options
&
MIPS_CPU_FPU
)
{
c
->
fpu_id
=
cpu_get_fpu_id
();
if
(
c
->
isa_level
==
MIPS_CPU_ISA_M32
||
c
->
isa_level
==
MIPS_CPU_ISA_M64
)
{
if
(
c
->
isa_level
==
MIPS_CPU_ISA_M32
R1
||
c
->
isa_level
==
MIPS_CPU_ISA_M64
R1
)
{
if
(
c
->
fpu_id
&
MIPS_FPIR_3D
)
c
->
ases
|=
MIPS_ASE_MIPS3D
;
}
...
...
arch/mips/kernel/time.c
浏览文件 @
e7958bb9
...
...
@@ -628,7 +628,7 @@ void __init time_init(void)
mips_hpt_init
=
c0_hpt_init
;
}
if
((
current_cpu_data
.
isa_level
==
MIPS_CPU_ISA_M32
)
||
if
((
current_cpu_data
.
isa_level
==
MIPS_CPU_ISA_M32
R1
)
||
(
current_cpu_data
.
isa_level
==
MIPS_CPU_ISA_I
)
||
(
current_cpu_data
.
isa_level
==
MIPS_CPU_ISA_II
))
/*
...
...
arch/mips/mm/c-r4k.c
浏览文件 @
e7958bb9
...
...
@@ -1183,8 +1183,8 @@ static void __init setup_scache(void)
if
(
!
sc_present
)
return
;
if
((
c
->
isa_level
==
MIPS_CPU_ISA_M32
||
c
->
isa_level
==
MIPS_CPU_ISA_M64
)
&&
if
((
c
->
isa_level
==
MIPS_CPU_ISA_M32
R1
||
c
->
isa_level
==
MIPS_CPU_ISA_M64
R1
)
&&
!
(
c
->
scache
.
flags
&
MIPS_CACHE_NOT_PRESENT
))
panic
(
"Dunno how to handle MIPS32 / MIPS64 second level cache"
);
...
...
include/asm-mips/cpu.h
浏览文件 @
e7958bb9
...
...
@@ -202,18 +202,15 @@
* ISA Level encodings
*
*/
#define MIPS_CPU_ISA_64BIT 0x00008000
#define MIPS_CPU_ISA_I 0x00000001
#define MIPS_CPU_ISA_II 0x00000002
#define MIPS_CPU_ISA_III 0x00008003
#define MIPS_CPU_ISA_IV 0x00008004
#define MIPS_CPU_ISA_V 0x00008005
#define MIPS_CPU_ISA_M32 0x00000020
#define MIPS_CPU_ISA_M64 0x00008040
/*
* Bit 15 encodes if an ISA level supports 64-bit operations.
*/
#define MIPS_CPU_ISA_64BIT 0x00008000
#define MIPS_CPU_ISA_III (0x00000003 | MIPS_CPU_ISA_64BIT)
#define MIPS_CPU_ISA_IV (0x00000004 | MIPS_CPU_ISA_64BIT)
#define MIPS_CPU_ISA_V (0x00000005 | MIPS_CPU_ISA_64BIT)
#define MIPS_CPU_ISA_M32R1 0x00000020
#define MIPS_CPU_ISA_M64R1 (0x00000040 | MIPS_CPU_ISA_64BIT)
/*
* CPU Option encodings
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录