Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gsplhtlxg
clone-Linux
提交
43081e18
C
clone-Linux
项目概览
gsplhtlxg
/
clone-Linux
通知
2
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
clone-Linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
43081e18
编写于
2月 12, 2008
作者:
P
Paul Mundt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sh: Shut up some trivial build warnings.
Signed-off-by:
N
Paul Mundt
<
lethal@linux-sh.org
>
上级
f1f8926a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
19 deletion
+18
-19
arch/sh/kernel/cpu/irq/intc-sh5.c
arch/sh/kernel/cpu/irq/intc-sh5.c
+12
-15
arch/sh/kernel/process_64.c
arch/sh/kernel/process_64.c
+6
-3
arch/sh/kernel/timers/timer-mtu2.c
arch/sh/kernel/timers/timer-mtu2.c
+0
-1
未找到文件。
arch/sh/kernel/cpu/irq/intc-sh5.c
浏览文件 @
43081e18
...
...
@@ -75,21 +75,6 @@ int intc_evt_to_irq[(0xE20/0x20)+1] = {
-
1
,
-
1
/* 0xE00 - 0xE20 */
};
/*
* Opposite mapper.
*/
static
int
IRQ_to_vectorN
[
NR_INTC_IRQS
]
=
{
0x12
,
0x15
,
0x18
,
0x1B
,
0x40
,
0x41
,
0x42
,
0x43
,
/* 0- 7 */
-
1
,
-
1
,
-
1
,
-
1
,
0x50
,
0x51
,
0x52
,
0x53
,
/* 8-15 */
0x54
,
0x55
,
0x32
,
0x33
,
0x34
,
0x35
,
0x36
,
-
1
,
/* 16-23 */
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
/* 24-31 */
0x20
,
0x21
,
0x22
,
0x23
,
0x24
,
0x25
,
0x26
,
0x38
,
/* 32-39 */
0x39
,
0x3A
,
0x3B
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
/* 40-47 */
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
/* 48-55 */
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
0x2B
,
/* 56-63 */
};
static
unsigned
long
intc_virt
;
static
unsigned
int
startup_intc_irq
(
unsigned
int
irq
);
...
...
@@ -176,6 +161,18 @@ void make_intc_irq(unsigned int irq)
}
#if defined(CONFIG_PROC_FS) && defined(CONFIG_SYSCTL)
static
int
IRQ_to_vectorN
[
NR_INTC_IRQS
]
=
{
0x12
,
0x15
,
0x18
,
0x1B
,
0x40
,
0x41
,
0x42
,
0x43
,
/* 0- 7 */
-
1
,
-
1
,
-
1
,
-
1
,
0x50
,
0x51
,
0x52
,
0x53
,
/* 8-15 */
0x54
,
0x55
,
0x32
,
0x33
,
0x34
,
0x35
,
0x36
,
-
1
,
/* 16-23 */
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
/* 24-31 */
0x20
,
0x21
,
0x22
,
0x23
,
0x24
,
0x25
,
0x26
,
0x38
,
/* 32-39 */
0x39
,
0x3A
,
0x3B
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
/* 40-47 */
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
/* 48-55 */
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
-
1
,
0x2B
,
/* 56-63 */
};
int
intc_irq_describe
(
char
*
p
,
int
irq
)
{
if
(
irq
<
NR_INTC_IRQS
)
...
...
arch/sh/kernel/process_64.c
浏览文件 @
43081e18
...
...
@@ -623,6 +623,7 @@ extern void interruptible_sleep_on(wait_queue_head_t *q);
#define mid_sched ((unsigned long) interruptible_sleep_on)
#ifdef CONFIG_FRAME_POINTER
static
int
in_sh64_switch_to
(
unsigned
long
pc
)
{
extern
char
__sh64_switch_to_end
;
...
...
@@ -631,12 +632,10 @@ static int in_sh64_switch_to(unsigned long pc)
return
(
pc
>=
(
unsigned
long
)
sh64_switch_to
)
&&
(
pc
<
(
unsigned
long
)
&
__sh64_switch_to_end
);
}
#endif
unsigned
long
get_wchan
(
struct
task_struct
*
p
)
{
unsigned
long
schedule_fp
;
unsigned
long
sh64_switch_to_fp
;
unsigned
long
schedule_caller_pc
;
unsigned
long
pc
;
if
(
!
p
||
p
==
current
||
p
->
state
==
TASK_RUNNING
)
...
...
@@ -649,6 +648,10 @@ unsigned long get_wchan(struct task_struct *p)
#ifdef CONFIG_FRAME_POINTER
if
(
in_sh64_switch_to
(
pc
))
{
unsigned
long
schedule_fp
;
unsigned
long
sh64_switch_to_fp
;
unsigned
long
schedule_caller_pc
;
sh64_switch_to_fp
=
(
long
)
p
->
thread
.
sp
;
/* r14 is saved at offset 4 in the sh64_switch_to frame */
schedule_fp
=
*
(
unsigned
long
*
)
(
long
)(
sh64_switch_to_fp
+
4
);
...
...
arch/sh/kernel/timers/timer-mtu2.c
浏览文件 @
43081e18
...
...
@@ -154,7 +154,6 @@ static int mtu2_timer_stop(void)
static
int
mtu2_timer_init
(
void
)
{
u8
tmp
;
unsigned
long
interval
;
setup_irq
(
CONFIG_SH_TIMER_IRQ
,
&
mtu2_irq
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录