Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
77c728c2
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
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看板
提交
77c728c2
编写于
3月 04, 2005
作者:
R
Ralf Baechle
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Gcc 4.0 fixes.
Signed-off-by:
N
Ralf Baechle
<
ralf@linux-mips.org
>
上级
5eaf7a21
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
9 deletion
+11
-9
arch/mips/kernel/signal32.c
arch/mips/kernel/signal32.c
+6
-4
arch/mips/mm/c-sb1.c
arch/mips/mm/c-sb1.c
+1
-1
include/asm-mips/paccess.h
include/asm-mips/paccess.h
+4
-4
未找到文件。
arch/mips/kernel/signal32.c
浏览文件 @
77c728c2
...
@@ -261,11 +261,12 @@ asmlinkage int sys32_sigaction(int sig, const struct sigaction32 *act,
...
@@ -261,11 +261,12 @@ asmlinkage int sys32_sigaction(int sig, const struct sigaction32 *act,
if
(
act
)
{
if
(
act
)
{
old_sigset_t
mask
;
old_sigset_t
mask
;
s32
handler
;
if
(
!
access_ok
(
VERIFY_READ
,
act
,
sizeof
(
*
act
)))
if
(
!
access_ok
(
VERIFY_READ
,
act
,
sizeof
(
*
act
)))
return
-
EFAULT
;
return
-
EFAULT
;
err
|=
__get_user
(
(
u32
)(
u64
)
new_ka
.
sa
.
sa_handler
,
err
|=
__get_user
(
handler
,
&
act
->
sa_handler
);
&
act
->
sa_handler
)
;
new_ka
.
sa
.
sa_handler
=
(
void
*
)(
s64
)
handler
;
err
|=
__get_user
(
new_ka
.
sa
.
sa_flags
,
&
act
->
sa_flags
);
err
|=
__get_user
(
new_ka
.
sa
.
sa_flags
,
&
act
->
sa_flags
);
err
|=
__get_user
(
mask
,
&
act
->
sa_mask
.
sig
[
0
]);
err
|=
__get_user
(
mask
,
&
act
->
sa_mask
.
sig
[
0
]);
if
(
err
)
if
(
err
)
...
@@ -826,12 +827,13 @@ asmlinkage int sys32_rt_sigaction(int sig, const struct sigaction32 *act,
...
@@ -826,12 +827,13 @@ asmlinkage int sys32_rt_sigaction(int sig, const struct sigaction32 *act,
goto
out
;
goto
out
;
if
(
act
)
{
if
(
act
)
{
s32
handler
;
int
err
=
0
;
int
err
=
0
;
if
(
!
access_ok
(
VERIFY_READ
,
act
,
sizeof
(
*
act
)))
if
(
!
access_ok
(
VERIFY_READ
,
act
,
sizeof
(
*
act
)))
return
-
EFAULT
;
return
-
EFAULT
;
err
|=
__get_user
(
(
u32
)(
u64
)
new_sa
.
sa
.
sa_handler
,
err
|=
__get_user
(
handler
,
&
act
->
sa_handler
);
&
act
->
sa_handler
)
;
new_sa
.
sa
.
sa_handler
=
(
void
*
)(
s64
)
handler
;
err
|=
__get_user
(
new_sa
.
sa
.
sa_flags
,
&
act
->
sa_flags
);
err
|=
__get_user
(
new_sa
.
sa
.
sa_flags
,
&
act
->
sa_flags
);
err
|=
get_sigset
(
&
new_sa
.
sa
.
sa_mask
,
&
act
->
sa_mask
);
err
|=
get_sigset
(
&
new_sa
.
sa
.
sa_mask
,
&
act
->
sa_mask
);
if
(
err
)
if
(
err
)
...
...
arch/mips/mm/c-sb1.c
浏览文件 @
77c728c2
...
@@ -235,7 +235,7 @@ static inline void __sb1_flush_icache_range(unsigned long start,
...
@@ -235,7 +235,7 @@ static inline void __sb1_flush_icache_range(unsigned long start,
/*
/*
* Invalidate all caches on this CPU
* Invalidate all caches on this CPU
*/
*/
static
void
local_sb1___flush_cache_all
(
void
)
static
void
__attribute_used__
local_sb1___flush_cache_all
(
void
)
{
{
__sb1_writeback_inv_dcache_all
();
__sb1_writeback_inv_dcache_all
();
__sb1_flush_icache_all
();
__sb1_flush_icache_all
();
...
...
include/asm-mips/paccess.h
浏览文件 @
77c728c2
...
@@ -52,7 +52,7 @@ struct __large_pstruct { unsigned long buf[100]; };
...
@@ -52,7 +52,7 @@ struct __large_pstruct { unsigned long buf[100]; };
})
})
#define __get_dbe_asm(insn) \
#define __get_dbe_asm(insn) \
(
{ \
{ \
__asm__ __volatile__( \
__asm__ __volatile__( \
"1:\t" insn "\t%1,%2\n\t" \
"1:\t" insn "\t%1,%2\n\t" \
"move\t%0,$0\n" \
"move\t%0,$0\n" \
...
@@ -67,7 +67,7 @@ struct __large_pstruct { unsigned long buf[100]; };
...
@@ -67,7 +67,7 @@ struct __large_pstruct { unsigned long buf[100]; };
".previous" \
".previous" \
:"=r" (__gu_err), "=r" (__gu_val) \
:"=r" (__gu_err), "=r" (__gu_val) \
:"o" (__mp(__gu_addr)), "i" (-EFAULT)); \
:"o" (__mp(__gu_addr)), "i" (-EFAULT)); \
}
)
}
extern
void
__get_dbe_unknown
(
void
);
extern
void
__get_dbe_unknown
(
void
);
...
@@ -90,7 +90,7 @@ extern void __get_dbe_unknown(void);
...
@@ -90,7 +90,7 @@ extern void __get_dbe_unknown(void);
})
})
#define __put_dbe_asm(insn) \
#define __put_dbe_asm(insn) \
(
{ \
{ \
__asm__ __volatile__( \
__asm__ __volatile__( \
"1:\t" insn "\t%1,%2\n\t" \
"1:\t" insn "\t%1,%2\n\t" \
"move\t%0,$0\n" \
"move\t%0,$0\n" \
...
@@ -104,7 +104,7 @@ extern void __get_dbe_unknown(void);
...
@@ -104,7 +104,7 @@ extern void __get_dbe_unknown(void);
".previous" \
".previous" \
: "=r" (__pu_err) \
: "=r" (__pu_err) \
: "r" (__pu_val), "o" (__mp(__pu_addr)), "i" (-EFAULT)); \
: "r" (__pu_val), "o" (__mp(__pu_addr)), "i" (-EFAULT)); \
}
)
}
extern
void
__put_dbe_unknown
(
void
);
extern
void
__put_dbe_unknown
(
void
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录