Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
e0ddf7a2
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
e0ddf7a2
编写于
7月 07, 2016
作者:
M
Michael Ellerman
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
powerpc/xmon: Dump ISA 2.07 SPRs
Signed-off-by:
N
Michael Ellerman
<
mpe@ellerman.id.au
>
上级
1846193b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
45 addition
and
0 deletion
+45
-0
arch/powerpc/include/asm/reg.h
arch/powerpc/include/asm/reg.h
+1
-0
arch/powerpc/xmon/xmon.c
arch/powerpc/xmon/xmon.c
+44
-0
未找到文件。
arch/powerpc/include/asm/reg.h
浏览文件 @
e0ddf7a2
...
...
@@ -268,6 +268,7 @@
#define DSISR_KEYFAULT 0x00200000
/* Key fault */
#define SPRN_TBRL 0x10C
/* Time Base Read Lower Register (user, R/O) */
#define SPRN_TBRU 0x10D
/* Time Base Read Upper Register (user, R/O) */
#define SPRN_CIR 0x11B
/* Chip Information Register (hyper, R/0) */
#define SPRN_TBWL 0x11C
/* Time Base Lower Register (super, R/W) */
#define SPRN_TBWU 0x11D
/* Time Base Upper Register (super, R/W) */
#define SPRN_TBU40 0x11E
/* Timebase upper 40 bits (hyper, R/W) */
...
...
arch/powerpc/xmon/xmon.c
浏览文件 @
e0ddf7a2
...
...
@@ -1711,6 +1711,49 @@ static void dump_206_sprs(void)
#endif
}
static
void
dump_207_sprs
(
void
)
{
#ifdef CONFIG_PPC64
unsigned
long
msr
;
if
(
!
cpu_has_feature
(
CPU_FTR_ARCH_207S
))
return
;
printf
(
"dpdes = %.16x tir = %.16x cir = %.8x
\n
"
,
mfspr
(
SPRN_DPDES
),
mfspr
(
SPRN_TIR
),
mfspr
(
SPRN_CIR
));
printf
(
"fscr = %.16x tar = %.16x pspb = %.8x
\n
"
,
mfspr
(
SPRN_FSCR
),
mfspr
(
SPRN_TAR
),
mfspr
(
SPRN_PSPB
));
msr
=
mfmsr
();
if
(
msr
&
MSR_TM
)
{
/* Only if TM has been enabled in the kernel */
printf
(
"tfhar = %.16x tfiar = %.16x texasr = %.16x
\n
"
,
mfspr
(
SPRN_TFHAR
),
mfspr
(
SPRN_TFIAR
),
mfspr
(
SPRN_TEXASR
));
}
printf
(
"mmcr0 = %.16x mmcr1 = %.16x mmcr2 = %.16x
\n
"
,
mfspr
(
SPRN_MMCR0
),
mfspr
(
SPRN_MMCR1
),
mfspr
(
SPRN_MMCR2
));
printf
(
"pmc1 = %.8x pmc2 = %.8x pmc3 = %.8x pmc4 = %.8x
\n
"
,
mfspr
(
SPRN_PMC1
),
mfspr
(
SPRN_PMC2
),
mfspr
(
SPRN_PMC3
),
mfspr
(
SPRN_PMC4
));
printf
(
"mmcra = %.16x siar = %.16x pmc5 = %.8x
\n
"
,
mfspr
(
SPRN_MMCRA
),
mfspr
(
SPRN_SIAR
),
mfspr
(
SPRN_PMC5
));
printf
(
"sdar = %.16x sier = %.16x pmc6 = %.8x
\n
"
,
mfspr
(
SPRN_SDAR
),
mfspr
(
SPRN_SIER
),
mfspr
(
SPRN_PMC6
));
printf
(
"ebbhr = %.16x ebbrr = %.16x bescr = %.16x
\n
"
,
mfspr
(
SPRN_EBBHR
),
mfspr
(
SPRN_EBBRR
),
mfspr
(
SPRN_BESCR
));
if
(
!
(
msr
&
MSR_HV
))
return
;
printf
(
"hfscr = %.16x dhdes = %.16x rpr = %.16x
\n
"
,
mfspr
(
SPRN_HFSCR
),
mfspr
(
SPRN_DHDES
),
mfspr
(
SPRN_RPR
));
printf
(
"dawr = %.16x dawrx = %.16x ciabr = %.16x
\n
"
,
mfspr
(
SPRN_DAWR
),
mfspr
(
SPRN_DAWRX
),
mfspr
(
SPRN_CIABR
));
#endif
}
static
void
dump_one_spr
(
int
spr
,
bool
show_unimplemented
)
{
...
...
@@ -1764,6 +1807,7 @@ static void super_regs(void)
printf
(
"toc = "
REG
" dar = "
REG
"
\n
"
,
toc
,
mfspr
(
SPRN_DAR
));
dump_206_sprs
();
dump_207_sprs
();
return
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录