Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
5383d2c8
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看板
提交
5383d2c8
编写于
2月 26, 2014
作者:
H
Heiko Carstens
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
s390/compat: convert to COMPAT_SYSCALL_DEFINEx part 7
Signed-off-by:
N
Heiko Carstens
<
heiko.carstens@de.ibm.com
>
上级
a0f8c6da
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
13 addition
and
42 deletion
+13
-42
arch/s390/kernel/compat_linux.c
arch/s390/kernel/compat_linux.c
+5
-7
arch/s390/kernel/compat_linux.h
arch/s390/kernel/compat_linux.h
+4
-7
arch/s390/kernel/compat_wrapper.S
arch/s390/kernel/compat_wrapper.S
+0
-24
arch/s390/kernel/syscalls.S
arch/s390/kernel/syscalls.S
+4
-4
未找到文件。
arch/s390/kernel/compat_linux.c
浏览文件 @
5383d2c8
...
...
@@ -454,7 +454,7 @@ COMPAT_SYSCALL_DEFINE1(s390_mmap2, struct mmap_arg_struct_emu31 __user *, arg)
return
sys_mmap_pgoff
(
a
.
addr
,
a
.
len
,
a
.
prot
,
a
.
flags
,
a
.
fd
,
a
.
offset
);
}
asmlinkage
long
sys32_read
(
unsigned
int
fd
,
char
__user
*
buf
,
size_t
count
)
COMPAT_SYSCALL_DEFINE3
(
s390_read
,
unsigned
int
,
fd
,
char
__user
*
,
buf
,
compat_size_t
,
count
)
{
if
((
compat_ssize_t
)
count
<
0
)
return
-
EINVAL
;
...
...
@@ -462,7 +462,7 @@ asmlinkage long sys32_read(unsigned int fd, char __user * buf, size_t count)
return
sys_read
(
fd
,
buf
,
count
);
}
asmlinkage
long
sys32_write
(
unsigned
int
fd
,
const
char
__user
*
buf
,
size_t
count
)
COMPAT_SYSCALL_DEFINE3
(
s390_write
,
unsigned
int
,
fd
,
const
char
__user
*
,
buf
,
compat_size_t
,
count
)
{
if
((
compat_ssize_t
)
count
<
0
)
return
-
EINVAL
;
...
...
@@ -476,14 +476,13 @@ asmlinkage long sys32_write(unsigned int fd, const char __user * buf, size_t cou
* because the 31 bit values differ from the 64 bit values.
*/
asmlinkage
long
sys32_fadvise64
(
int
fd
,
loff_t
offset
,
size_t
len
,
int
advise
)
COMPAT_SYSCALL_DEFINE5
(
s390_fadvise64
,
int
,
fd
,
u32
,
high
,
u32
,
low
,
compat_size_t
,
len
,
int
,
advise
)
{
if
(
advise
==
4
)
advise
=
POSIX_FADV_DONTNEED
;
else
if
(
advise
==
5
)
advise
=
POSIX_FADV_NOREUSE
;
return
sys_fadvise64
(
fd
,
offset
,
len
,
advise
);
return
sys_fadvise64
(
fd
,
(
unsigned
long
)
high
<<
32
|
low
,
len
,
advise
);
}
struct
fadvise64_64_args
{
...
...
@@ -493,8 +492,7 @@ struct fadvise64_64_args {
int
advice
;
};
asmlinkage
long
sys32_fadvise64_64
(
struct
fadvise64_64_args
__user
*
args
)
COMPAT_SYSCALL_DEFINE1
(
s390_fadvise64_64
,
struct
fadvise64_64_args
__user
*
,
args
)
{
struct
fadvise64_64_args
a
;
...
...
arch/s390/kernel/compat_linux.h
浏览文件 @
5383d2c8
...
...
@@ -97,9 +97,6 @@ long compat_sys_s390_getgid16(void);
long
compat_sys_s390_getegid16
(
void
);
long
compat_sys_s390_truncate64
(
const
char
__user
*
path
,
u32
high
,
u32
low
);
long
compat_sys_s390_ftruncate64
(
unsigned
int
fd
,
u32
high
,
u32
low
);
long
sys32_init_module
(
void
__user
*
umod
,
unsigned
long
len
,
const
char
__user
*
uargs
);
long
sys32_delete_module
(
const
char
__user
*
name_user
,
unsigned
int
flags
);
long
compat_sys_s390_pread64
(
unsigned
int
fd
,
char
__user
*
ubuf
,
compat_size_t
count
,
u32
high
,
u32
low
);
long
compat_sys_s390_pwrite64
(
unsigned
int
fd
,
const
char
__user
*
ubuf
,
compat_size_t
count
,
u32
high
,
u32
low
);
long
compat_sys_s390_readahead
(
int
fd
,
u32
high
,
u32
low
,
s32
count
);
...
...
@@ -109,8 +106,8 @@ long compat_sys_s390_fstat64(unsigned int fd, struct stat64_emu31 __user *statbu
long
compat_sys_s390_fstatat64
(
unsigned
int
dfd
,
const
char
__user
*
filename
,
struct
stat64_emu31
__user
*
statbuf
,
int
flag
);
long
compat_sys_s390_old_mmap
(
struct
mmap_arg_struct_emu31
__user
*
arg
);
long
compat_sys_s390_mmap2
(
struct
mmap_arg_struct_emu31
__user
*
arg
);
long
sys32_read
(
unsigned
int
fd
,
char
__user
*
buf
,
size_t
count
);
long
sys32_write
(
unsigned
int
fd
,
const
char
__user
*
buf
,
size_t
count
);
long
sys32_fadvise64
(
int
fd
,
loff_t
offset
,
size_t
len
,
int
advise
);
long
sys32
_fadvise64_64
(
struct
fadvise64_64_args
__user
*
args
);
long
compat_sys_s390_read
(
unsigned
int
fd
,
char
__user
*
buf
,
compat_
size_t
count
);
long
compat_sys_s390_write
(
unsigned
int
fd
,
const
char
__user
*
buf
,
compat_
size_t
count
);
long
compat_sys_s390_fadvise64
(
int
fd
,
u32
high
,
u32
low
,
compat_
size_t
len
,
int
advise
);
long
compat_sys_s390
_fadvise64_64
(
struct
fadvise64_64_args
__user
*
args
);
#endif
/* _ASM_S390X_S390_H */
arch/s390/kernel/compat_wrapper.S
浏览文件 @
5383d2c8
...
...
@@ -12,18 +12,6 @@ ENTRY(sys32_exit_wrapper)
lgfr
%
r2
,%
r2
#
int
jg
sys_exit
#
branch
to
sys_exit
ENTRY
(
sys32_read_wrapper
)
llgfr
%
r2
,%
r2
#
unsigned
int
llgtr
%
r3
,%
r3
#
char
*
llgfr
%
r4
,%
r4
#
size_t
jg
sys32_read
#
branch
to
sys_read
ENTRY
(
sys32_write_wrapper
)
llgfr
%
r2
,%
r2
#
unsigned
int
llgtr
%
r3
,%
r3
#
const
char
*
llgfr
%
r4
,%
r4
#
size_t
jg
sys32_write
#
branch
to
system
call
ENTRY
(
sys32_close_wrapper
)
llgfr
%
r2
,%
r2
#
unsigned
int
jg
sys_close
#
branch
to
system
call
...
...
@@ -777,18 +765,6 @@ ENTRY(sys_epoll_wait_wrapper)
lgfr
%
r5
,%
r5
#
int
jg
sys_epoll_wait
#
branch
to
system
call
ENTRY
(
sys32_fadvise64_wrapper
)
lgfr
%
r2
,%
r2
#
int
sllg
%
r3
,%
r3
,
32
#
get
high
word
of
64
bit
loff_t
or
%
r3
,%
r4
#
get
low
word
of
64
bit
loff_t
llgfr
%
r4
,%
r5
#
size_t
(
unsigned
long
)
lgfr
%
r5
,%
r6
#
int
jg
sys32_fadvise64
ENTRY
(
sys32_fadvise64_64_wrapper
)
llgtr
%
r2
,%
r2
#
struct
fadvise64_64_args
*
jg
sys32_fadvise64_64
ENTRY
(
sys32_clock_settime_wrapper
)
lgfr
%
r2
,%
r2
#
clockid_t
(
int
)
llgtr
%
r3
,%
r3
#
struct
compat_timespec
*
...
...
arch/s390/kernel/syscalls.S
浏览文件 @
5383d2c8
...
...
@@ -11,8 +11,8 @@
NI_SYSCALL
/
*
0
*/
SYSCALL
(
sys_exit
,
sys_exit
,
sys32_exit_wrapper
)
SYSCALL
(
sys_fork
,
sys_fork
,
sys_fork
)
SYSCALL
(
sys_read
,
sys_read
,
sys32_read_wrapper
)
SYSCALL
(
sys_write
,
sys_write
,
sys32_write_wrapper
)
SYSCALL
(
sys_read
,
sys_read
,
compat_sys_s390_read
)
SYSCALL
(
sys_write
,
sys_write
,
compat_sys_s390_write
)
SYSCALL
(
sys_open
,
sys_open
,
compat_sys_open
)
/
*
5
*/
SYSCALL
(
sys_close
,
sys_close
,
sys32_close_wrapper
)
SYSCALL
(
sys_restart_syscall
,
sys_restart_syscall
,
sys_restart_syscall
)
...
...
@@ -261,7 +261,7 @@ SYSCALL(sys_epoll_create,sys_epoll_create,sys_epoll_create_wrapper)
SYSCALL
(
sys_epoll_ctl
,
sys_epoll_ctl
,
sys_epoll_ctl_wrapper
)
/
*
250
*/
SYSCALL
(
sys_epoll_wait
,
sys_epoll_wait
,
sys_epoll_wait_wrapper
)
SYSCALL
(
sys_set_tid_address
,
sys_set_tid_address
,
sys32_set_tid_address_wrapper
)
SYSCALL
(
sys_s390_fadvise64
,
sys_fadvise64_64
,
sys32_fadvise64_wrapper
)
SYSCALL
(
sys_s390_fadvise64
,
sys_fadvise64_64
,
compat_sys_s390_fadvise64
)
SYSCALL
(
sys_timer_create
,
sys_timer_create
,
sys32_timer_create_wrapper
)
SYSCALL
(
sys_timer_settime
,
sys_timer_settime
,
sys32_timer_settime_wrapper
)
/
*
255
*/
SYSCALL
(
sys_timer_gettime
,
sys_timer_gettime
,
sys32_timer_gettime_wrapper
)
...
...
@@ -272,7 +272,7 @@ SYSCALL(sys_clock_gettime,sys_clock_gettime,sys32_clock_gettime_wrapper) /* 260
SYSCALL
(
sys_clock_getres
,
sys_clock_getres
,
sys32_clock_getres_wrapper
)
SYSCALL
(
sys_clock_nanosleep
,
sys_clock_nanosleep
,
sys32_clock_nanosleep_wrapper
)
NI_SYSCALL
/
*
reserved
for
vserver
*/
SYSCALL
(
sys_s390_fadvise64_64
,
sys_ni_syscall
,
sys32_fadvise64_64_wrapper
)
SYSCALL
(
sys_s390_fadvise64_64
,
sys_ni_syscall
,
compat_sys_s390_fadvise64_64
)
SYSCALL
(
sys_statfs64
,
sys_statfs64
,
compat_sys_statfs64_wrapper
)
SYSCALL
(
sys_fstatfs64
,
sys_fstatfs64
,
compat_sys_fstatfs64_wrapper
)
SYSCALL
(
sys_remap_file_pages
,
sys_remap_file_pages
,
sys32_remap_file_pages_wrapper
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录