Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
f18dd516
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
161
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看板
提交
f18dd516
编写于
4月 01, 2006
作者:
P
Paul Mackerras
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'for_paulus' of
git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc
上级
683aa401
72d2c3e0
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
43 addition
and
52 deletion
+43
-52
arch/powerpc/kernel/setup_32.c
arch/powerpc/kernel/setup_32.c
+0
-6
arch/powerpc/kernel/traps.c
arch/powerpc/kernel/traps.c
+3
-6
arch/powerpc/platforms/83xx/mpc834x_sys.c
arch/powerpc/platforms/83xx/mpc834x_sys.c
+20
-20
arch/powerpc/platforms/85xx/mpc85xx_ads.c
arch/powerpc/platforms/85xx/mpc85xx_ads.c
+20
-20
未找到文件。
arch/powerpc/kernel/setup_32.c
浏览文件 @
f18dd516
...
...
@@ -50,7 +50,6 @@
#include <asm/kgdb.h>
#endif
extern
void
platform_init
(
void
);
extern
void
bootx_init
(
unsigned
long
r4
,
unsigned
long
phys
);
boot_infos_t
*
boot_infos
;
...
...
@@ -138,12 +137,7 @@ void __init machine_init(unsigned long dt_ptr, unsigned long phys)
strlcpy
(
cmd_line
,
CONFIG_CMDLINE
,
sizeof
(
cmd_line
));
#endif
/* CONFIG_CMDLINE */
#ifdef CONFIG_PPC_MULTIPLATFORM
probe_machine
();
#else
/* Base init based on machine type. Obsoloete, please kill ! */
platform_init
();
#endif
#ifdef CONFIG_6xx
if
(
cpu_has_feature
(
CPU_FTR_CAN_DOZE
)
||
...
...
arch/powerpc/kernel/traps.c
浏览文件 @
f18dd516
...
...
@@ -228,7 +228,7 @@ void system_reset_exception(struct pt_regs *regs)
*/
static
inline
int
check_io_access
(
struct
pt_regs
*
regs
)
{
#if
def CONFIG_PPC_PMAC
#if
defined(CONFIG_PPC_PMAC) && defined(CONFIG_PPC32)
unsigned
long
msr
=
regs
->
msr
;
const
struct
exception_table_entry
*
entry
;
unsigned
int
*
nip
=
(
unsigned
int
*
)
regs
->
nip
;
...
...
@@ -261,7 +261,7 @@ static inline int check_io_access(struct pt_regs *regs)
return
1
;
}
}
#endif
/* CONFIG_PPC_PMAC */
#endif
/* CONFIG_PPC_PMAC
&& CONFIG_PPC32
*/
return
0
;
}
...
...
@@ -308,8 +308,8 @@ platform_machine_check(struct pt_regs *regs)
void
machine_check_exception
(
struct
pt_regs
*
regs
)
{
#ifdef CONFIG_PPC64
int
recover
=
0
;
unsigned
long
reason
=
get_mc_reason
(
regs
);
/* See if any machine dependent calls */
if
(
ppc_md
.
machine_check_exception
)
...
...
@@ -317,8 +317,6 @@ void machine_check_exception(struct pt_regs *regs)
if
(
recover
)
return
;
#else
unsigned
long
reason
=
get_mc_reason
(
regs
);
if
(
user_mode
(
regs
))
{
regs
->
msr
|=
MSR_RI
;
...
...
@@ -462,7 +460,6 @@ void machine_check_exception(struct pt_regs *regs)
* additional info, e.g. bus error registers.
*/
platform_machine_check
(
regs
);
#endif
/* CONFIG_PPC64 */
if
(
debugger_fault_handler
(
regs
))
return
;
...
...
arch/powerpc/platforms/83xx/mpc834x_sys.c
浏览文件 @
f18dd516
...
...
@@ -158,25 +158,25 @@ static int __init mpc834x_rtc_hookup(void)
late_initcall
(
mpc834x_rtc_hookup
);
#endif
void
__init
platform_init
(
void
)
/*
* Called very early, MMU is off, device-tree isn't unflattened
*/
static
int
__init
mpc834x_sys_probe
(
void
)
{
/* setup the PowerPC module struct */
ppc_md
.
setup_arch
=
mpc834x_sys_setup_arch
;
ppc_md
.
init_IRQ
=
mpc834x_sys_init_IRQ
;
ppc_md
.
get_irq
=
ipic_get_irq
;
ppc_md
.
restart
=
mpc83xx_restart
;
ppc_md
.
time_init
=
mpc83xx_time_init
;
ppc_md
.
set_rtc_time
=
NULL
;
ppc_md
.
get_rtc_time
=
NULL
;
ppc_md
.
calibrate_decr
=
generic_calibrate_decr
;
ppc_md
.
progress
=
udbg_progress
;
if
(
ppc_md
.
progress
)
ppc_md
.
progress
(
"mpc834x_sys_init(): exit"
,
0
);
return
;
/* We always match for now, eventually we should look at the flat
dev tree to ensure this is the board we are suppose to run on
*/
return
1
;
}
define_machine
(
mpc834x_sys
)
{
.
name
=
"MPC834x SYS"
,
.
probe
=
mpc834x_sys_probe
,
.
setup_arch
=
mpc834x_sys_setup_arch
,
.
init_IRQ
=
mpc834x_sys_init_IRQ
,
.
get_irq
=
ipic_get_irq
,
.
restart
=
mpc83xx_restart
,
.
time_init
=
mpc83xx_time_init
,
.
calibrate_decr
=
generic_calibrate_decr
,
.
progress
=
udbg_progress
,
};
arch/powerpc/platforms/85xx/mpc85xx_ads.c
浏览文件 @
f18dd516
...
...
@@ -220,25 +220,25 @@ void mpc85xx_ads_show_cpuinfo(struct seq_file *m)
seq_printf
(
m
,
"Memory
\t\t
: %d MB
\n
"
,
memsize
/
(
1024
*
1024
));
}
void
__init
platform_init
(
void
)
/*
* Called very early, device-tree isn't unflattened
*/
static
int
__init
mpc85xx_ads_probe
(
void
)
{
ppc_md
.
setup_arch
=
mpc85xx_ads_setup_arch
;
ppc_md
.
show_cpuinfo
=
mpc85xx_ads_show_cpuinfo
;
ppc_md
.
init_IRQ
=
mpc85xx_ads_pic_init
;
ppc_md
.
get_irq
=
mpic_get_irq
;
ppc_md
.
restart
=
mpc85xx_restart
;
ppc_md
.
power_off
=
NULL
;
ppc_md
.
halt
=
NULL
;
ppc_md
.
time_init
=
NULL
;
ppc_md
.
set_rtc_time
=
NULL
;
ppc_md
.
get_rtc_time
=
NULL
;
ppc_md
.
calibrate_decr
=
generic_calibrate_decr
;
ppc_md
.
progress
=
udbg_progress
;
if
(
ppc_md
.
progress
)
ppc_md
.
progress
(
"mpc85xx_ads platform_init(): exit"
,
0
);
/* We always match for now, eventually we should look at the flat
dev tree to ensure this is the board we are suppose to run on
*/
return
1
;
}
define_machine
(
mpc85xx_ads
)
{
.
name
=
"MPC85xx ADS"
,
.
probe
=
mpc85xx_ads_probe
,
.
setup_arch
=
mpc85xx_ads_setup_arch
,
.
init_IRQ
=
mpc85xx_ads_pic_init
,
.
show_cpuinfo
=
mpc85xx_ads_show_cpuinfo
,
.
get_irq
=
mpic_get_irq
,
.
restart
=
mpc85xx_restart
,
.
calibrate_decr
=
generic_calibrate_decr
,
.
progress
=
udbg_progress
,
};
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录